Qt: show icons on menus if menuitem.bitmap is assigned and there's no imagelist.issue #24770

git-svn-id: trunk@42630 -
This commit is contained in:
zeljko 2013-09-06 06:32:20 +00:00
parent f733b97389
commit 9d8486877a

View File

@ -127,7 +127,9 @@ begin
begin
ImgList.GetBitmap(AMenuItem.ImageIndex, AMenuItem.Bitmap);
Result.setImage(TQtImage(AMenuItem.Bitmap.Handle));
end;
end else
if Assigned(AMenuItem.Bitmap) then
Result.setImage(TQtImage(AMenuItem.Bitmap.Handle));
end else
Result.setImage(nil);
end;