Qt: use QStylePM_ButtonIconSize for pixel metrics of button pixmaps.

git-svn-id: trunk@34502 -
This commit is contained in:
zeljko 2011-12-29 17:15:47 +00:00
parent b30da49c3e
commit ec5846581a

View File

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