mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 15:20:49 +02:00
Qt: use QStylePM_ButtonIconSize for pixel metrics of button pixmaps.
git-svn-id: trunk@34502 -
This commit is contained in:
parent
b30da49c3e
commit
ec5846581a
@ -621,7 +621,7 @@ begin
|
||||
opt := QStyleOption_create(Integer(QStyleOptionVersion), Integer(QStyleOptionSO_Default));
|
||||
APixmap := QPixmap_create();
|
||||
if StockID in [idButtonOk..idButtonShield] then
|
||||
IconSize := QStyle_pixelMetric(QApplication_style(), QStylePM_SmallIconSize, opt)
|
||||
IconSize := QStyle_pixelMetric(QApplication_style(), QStylePM_ButtonIconSize, opt)
|
||||
else
|
||||
IconSize := 0;
|
||||
QStyle_standardPixmap(QApplication_style(), APixmap, AStdPixmap, opt);
|
||||
|
Loading…
Reference in New Issue
Block a user