mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 12:19:16 +02:00
Qt: removed workaround for qt 4.3, fixes #15744
git-svn-id: trunk@23838 -
This commit is contained in:
parent
0c45fb0f79
commit
8abecb2ba9
@ -900,21 +900,6 @@ begin
|
|||||||
Exit;
|
Exit;
|
||||||
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
||||||
QtTreeWidget.takeTopLevelItem(AIndex);
|
QtTreeWidget.takeTopLevelItem(AIndex);
|
||||||
|
|
||||||
{$note FIXME workaround issue #9746, TQtWSCustomListView.ItemDelete}
|
|
||||||
{workaround for ListOutOfBounds in some cases. Described with issue #9746}
|
|
||||||
QtItem := QtTreeWidget.currentItem;
|
|
||||||
|
|
||||||
if QtItem <> nil then
|
|
||||||
begin
|
|
||||||
Item := ALV.Selected;
|
|
||||||
if Assigned(Item) then
|
|
||||||
begin
|
|
||||||
if Item.Index <> QtTreeWidget.indexOfTopLevelItem(QtItem) then
|
|
||||||
TListView(ALV).Items[QtTreeWidget.indexOfTopLevelItem(QtItem)].Selected := True;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
@ -989,7 +974,6 @@ begin
|
|||||||
lisFocused: AIsSet := TWI = QtTreeWidget.currentItem;
|
lisFocused: AIsSet := TWI = QtTreeWidget.currentItem;
|
||||||
lisSelected: AIsSet := QTreeWidgetItem_isSelected(TWI);
|
lisSelected: AIsSet := QTreeWidgetItem_isSelected(TWI);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Result := True;
|
Result := True;
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user