View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0031595 | Lazarus | Widgetset | public | 2017-03-25 07:07 | 2017-04-26 09:04 |
Reporter | Bambang Pranoto | Assigned To | Zeljan Rikalo | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Linux | OS | Ubuntu | ||
Product Version | 1.6.4 | ||||
Target Version | 1.8 | Fixed in Version | 1.9 (SVN) | ||
Summary | 0031595: Strange behaviour on TListView onChange event | ||||
Description | a ListView with style vsIcon and LargeImages Clicking on currently non selected item: * makes the clicked item selected * the previous selected item becomes non selected. However, if on OnChange event of the ListView we just access the selected property of the Item parameter, the behaviour changes. Clicking a non selected items still retained the previous selected item. | ||||
Steps To Reproduce | Compile and run the attachment: We can see the weird behaviour if we tick the checkbox. | ||||
Additional Information | The OnChange procedure: procedure TForm1.ListView1Change(Sender: TObject; Item: TListItem; Change: TItemChange); var s : String; begin s := Item.Caption ; if Self.CheckBox1.Checked then begin if Item.Selected then begin s := s + ' - selected'; end else begin s := s + ' - unselected'; end; end; Self.Memo1.Lines.Add( s ); Self.Memo1.SelStart:=Length( Self.Memo1.Text); Self.Memo1.SelLength:=0; end; | ||||
Tags | No tags attached. | ||||
Fixed in Revision | 54694 | ||||
LazTarget | 1.8 | ||||
Widgetset | QT, QT5 | ||||
Attached Files |
|
|
|
|
Problem only with WidgetSet Qt. Gtk2 runs fine. |
|
Added the widgetset. |
|
Please test and close if ok. I've also fixed Qt5 which had similar bug. Both will be merged to 1.8 fixes. |
|
I downloaded qwidgets.pas from 54694 but it didn't compile with lazarus v1.6.4, so I looked and applied the diff manually. The bug is fixed. |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-03-25 07:07 | Bambang Pranoto | New Issue | |
2017-03-25 07:07 | Bambang Pranoto | File Added: tlistviewonchangeeventbug.zip | |
2017-03-26 19:36 | Bambang Pranoto | Note Added: 0099238 | |
2017-03-29 21:40 | Juha Manninen | LazTarget | => - |
2017-03-29 21:40 | Juha Manninen | Widgetset | => QT |
2017-03-29 21:40 | Juha Manninen | Note Added: 0099268 | |
2017-03-29 21:40 | Juha Manninen | Category | LCL => Widgetset |
2017-03-30 08:28 | Zeljan Rikalo | Assigned To | => Zeljan Rikalo |
2017-03-30 08:28 | Zeljan Rikalo | Status | new => assigned |
2017-04-23 12:36 | Zeljan Rikalo | Fixed in Revision | => 54694 |
2017-04-23 12:36 | Zeljan Rikalo | LazTarget | - => 1.8 |
2017-04-23 12:36 | Zeljan Rikalo | Widgetset | QT => QT, QT5 |
2017-04-23 12:36 | Zeljan Rikalo | Note Added: 0099804 | |
2017-04-23 12:36 | Zeljan Rikalo | Status | assigned => resolved |
2017-04-23 12:36 | Zeljan Rikalo | Fixed in Version | => 1.9 (SVN) |
2017-04-23 12:36 | Zeljan Rikalo | Resolution | open => fixed |
2017-04-23 12:36 | Zeljan Rikalo | Target Version | => 1.8 |
2017-04-26 09:04 | Bambang Pranoto | Note Added: 0099939 | |
2017-04-26 09:04 | Bambang Pranoto | Status | resolved => closed |