mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 04:58:11 +02:00
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:
parent
f733b97389
commit
9d8486877a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user