mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 13:19:18 +02:00
Qt: fixed wrong cast
git-svn-id: trunk@35866 -
This commit is contained in:
parent
0fd8705211
commit
82aea5f59c
@ -1129,7 +1129,6 @@ class function TQtWSCustomListView.ItemGetChecked(const ALV: TCustomListView;
|
||||
const AIndex: Integer; const AItem: TListItem): Boolean;
|
||||
var
|
||||
QtTreeWidget: TQtTreeWidget;
|
||||
TWI: QTreeWidgetItemH;
|
||||
LWI: QListWidgetItemH;
|
||||
AState: QtCheckState;
|
||||
begin
|
||||
@ -1145,7 +1144,7 @@ begin
|
||||
AState := QtUnChecked;
|
||||
LWI := TQtListWidget(ALV.Handle).getItem(AIndex);
|
||||
if LWI <> nil then
|
||||
AState := TQtListWidget(ALV).GetItemLastCheckState(LWI);
|
||||
AState := TQtListWidget(ALV.Handle).GetItemLastCheckState(LWI);
|
||||
Result := AState = QtChecked;
|
||||
end else
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user