summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qstylehelper_p.h
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@qt.io>2017-05-11 20:42:07 +0700
committerGabriel de Dietrich <gabriel.dedietrich@qt.io>2017-05-15 22:39:28 +0000
commit639d6c4d0dbccf6824dc07803ea7de163c3c5eec (patch)
treef6ab694361cbef963f369d39149d0e04a4abcfeb /src/widgets/styles/qstylehelper_p.h
parent33833d42254a62e39a96afda11c43ab8688b1772 (diff)
QMacStyle: Replace QAquaWidgetSize with WidgetSizePolicy
No need to have two enums for the exact same purpose. qmacstyle auto-test updated as well. Change-Id: Ia601648191e39c0cbbaa7477143441005ae063c2 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'src/widgets/styles/qstylehelper_p.h')
-rw-r--r--src/widgets/styles/qstylehelper_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/styles/qstylehelper_p.h b/src/widgets/styles/qstylehelper_p.h
index aa6cbaad78..8ca213933f 100644
--- a/src/widgets/styles/qstylehelper_p.h
+++ b/src/widgets/styles/qstylehelper_p.h
@@ -88,7 +88,7 @@ namespace QStyleHelper
Q_WIDGETS_EXPORT QColor backgroundColor(const QPalette &pal, const QWidget* widget = 0);
Q_WIDGETS_EXPORT QWindow *styleObjectWindow(QObject *so);
- enum WidgetSizePolicy { SizeSmall, SizeLarge, SizeMini, SizeDefault };
+ enum WidgetSizePolicy { SizeLarge = 0, SizeSmall = 1, SizeMini = 2, SizeDefault = -1 };
void setWidgetSizePolicy(const QWidget *w, WidgetSizePolicy policy);
Q_WIDGETS_EXPORT WidgetSizePolicy widgetSizePolicy(const QWidget *w, const QStyleOption *opt = 0);