Change-Id: I2f493d45820063ef62f16febde0df89a874dddb0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
#include <qvarlengtharray.h>
#include <limits.h>
#include <private/qstylehelper_p.h>
+#include <qpa/qplatformtheme.h>
+#include <private/qguiapplication_p.h>
QT_BEGIN_NAMESPACE
case SH_Menu_SubMenuPopupDelay:
ret = 96; // from Plastik
break;
-#ifdef Q_WS_X11
case SH_DialogButtonBox_ButtonsHaveIcons:
- ret = true;
+ if (const QPlatformTheme *theme = QGuiApplicationPrivate::platformTheme())
+ ret = theme->themeHint(QPlatformTheme::DialogButtonBoxButtonsHaveIcons).toBool();
+ else
+ ret = true;
break;
-#endif
#ifndef Q_OS_WIN
case SH_Menu_AllowActiveAndDisabled:
ret = false;