From b2498d731fef5cce911b4b9ea24d65221edbc5b9 Mon Sep 17 00:00:00 2001 From: zeljko Date: Sat, 15 Nov 2014 11:07:30 +0000 Subject: [PATCH] Qt: always recreateWnd when imagelist is set on TListView. git-svn-id: trunk@46854 - --- lcl/interfaces/qt/qtwscomctrls.pp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lcl/interfaces/qt/qtwscomctrls.pp b/lcl/interfaces/qt/qtwscomctrls.pp index a779f1074b..1f498a4615 100644 --- a/lcl/interfaces/qt/qtwscomctrls.pp +++ b/lcl/interfaces/qt/qtwscomctrls.pp @@ -1988,19 +1988,10 @@ 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); + RecreateWnd(ALV); end; class procedure TQtWSCustomListView.SetItemsCount(const ALV: TCustomListView;