mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 08:38:19 +02:00
Qt5: fixed TListView checkbox state change on mouse click. issue #39852
This commit is contained in:
parent
69fd4ceb83
commit
0c85e0ffb6
@ -12985,11 +12985,13 @@ begin
|
||||
end else
|
||||
begin
|
||||
SlotMouse(Sender, Event);
|
||||
HandleCheckChangedEvent(MousePos, Item, Event);
|
||||
//issue #39852, uncommented works fine with Qt4
|
||||
//HandleCheckChangedEvent(MousePos, Item, Event);
|
||||
if not QListWidgetItem_isSelected(Item) then
|
||||
QListWidget_setCurrentItem(QListWidgetH(Widget), Item, QItemSelectionModelClearAndSelect);
|
||||
QEvent_ignore(Event);
|
||||
Result := True;
|
||||
//issue #39852, uncommented works fine with Qt4
|
||||
//Result := True;
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user