mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 21:39:21 +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
|
begin
|
||||||
ImgList.GetBitmap(AMenuItem.ImageIndex, AMenuItem.Bitmap);
|
ImgList.GetBitmap(AMenuItem.ImageIndex, AMenuItem.Bitmap);
|
||||||
Result.setImage(TQtImage(AMenuItem.Bitmap.Handle));
|
Result.setImage(TQtImage(AMenuItem.Bitmap.Handle));
|
||||||
end;
|
end else
|
||||||
|
if Assigned(AMenuItem.Bitmap) then
|
||||||
|
Result.setImage(TQtImage(AMenuItem.Bitmap.Handle));
|
||||||
end else
|
end else
|
||||||
Result.setImage(nil);
|
Result.setImage(nil);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user