summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qmacstyle_mac.mm
diff options
context:
space:
mode:
authorStephan Binner <stephan.binner@basyskom.com>2017-07-09 16:55:03 +0200
committerStephan Binner <stephan.binner@basyskom.com>2017-07-15 16:46:38 +0000
commit773178900f39febb0509cb4170bc091c9f91d3b3 (patch)
treea0bcc17a72f075793cf2438cd260e03b577ef277 /src/widgets/styles/qmacstyle_mac.mm
parenta23568be6c6859b3a149cfadb1104da4f32318f5 (diff)
Convert features.treeview to QT_[REQUIRE_]CONFIG
Change-Id: I4a036a0410615ac563b17f7715c47acccb8abfca Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/widgets/styles/qmacstyle_mac.mm')
-rw-r--r--src/widgets/styles/qmacstyle_mac.mm6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/widgets/styles/qmacstyle_mac.mm b/src/widgets/styles/qmacstyle_mac.mm
index 8a6e32105a..99526683dd 100644
--- a/src/widgets/styles/qmacstyle_mac.mm
+++ b/src/widgets/styles/qmacstyle_mac.mm
@@ -88,7 +88,9 @@
#include <qstyleoption.h>
#include <qtoolbar.h>
#include <qtoolbutton.h>
+#if QT_CONFIG(treeview)
#include <qtreeview.h>
+#endif
#if QT_CONFIG(tableview)
#include <qtableview.h>
#endif
@@ -420,7 +422,7 @@ static int getControlSize(const QStyleOption *option, const QWidget *widget)
}
-#ifndef QT_NO_TREEVIEW
+#if QT_CONFIG(treeview)
static inline bool isTreeView(const QWidget *widget)
{
return (widget && widget->parentWidget() &&
@@ -899,7 +901,7 @@ static QSize qt_aqua_get_known_size(QStyle::ContentsType ct, const QWidget *widg
break;
#endif
case QStyle::CT_HeaderSection:
-#ifndef QT_NO_TREEVIEW
+#if QT_CONFIG(treeview)
if (isTreeView(widg))
ret = QSize(-1, qt_mac_aqua_get_metric(kThemeMetricListHeaderHeight));
#endif