Qt: always recreateWnd when imagelist is set on TListView.

git-svn-id: trunk@46854 -
This commit is contained in:
zeljko 2014-11-15 11:07:30 +00:00
parent 591d6edbff
commit b2498d731f

View File

@ -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;