Set the style hint ensuring the standard button in button boxes have icons

This commit is contained in:
Kovid Goyal 2012-06-05 17:04:28 +05:30
parent e095f5d0cf
commit 961c48a874

View File

@ -3644,9 +3644,10 @@ int Style::styleHint(StyleHint hint, const QStyleOption *option, const QWidget *
case SH_FormLayoutWrapPolicy:
return QFormLayout::DontWrapRows;
#endif
#if !defined QTC_QT_ONLY
// Changed by Kovid
case SH_DialogButtonBox_ButtonsHaveIcons:
return KGlobalSettings::showIconsOnPushButtons();
return 1;
#if !defined QTC_QT_ONLY
case SH_ItemView_ActivateItemOnSingleClick:
return KGlobalSettings::singleClick();
#endif