mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 20:59:12 +02:00
Qt: always recreateWnd when imagelist is set on TListView.
git-svn-id: trunk@46854 -
This commit is contained in:
parent
591d6edbff
commit
b2498d731f
@ -1988,18 +1988,9 @@ end;
|
||||
|
||||
class procedure TQtWSCustomListView.SetImageList(const ALV: TCustomListView;
|
||||
const AList: TListViewImageList; const AValue: TCustomImageList);
|
||||
var
|
||||
QtListWidget: TQtListWidget;
|
||||
begin
|
||||
if not WSCheckHandleAllocated(ALV, 'SetImageList') then
|
||||
Exit;
|
||||
|
||||
if not IsIconView(ALV) then
|
||||
exit;
|
||||
|
||||
QtListWidget := TQtListWidget(ALV.Handle);
|
||||
// issue #26770 , imediatelly apply changes.
|
||||
if TViewStyle(QtListWidget.ViewStyle) in [vsIcon, vsSmallIcon] then
|
||||
RecreateWnd(ALV);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user