summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qwindowsstyle.cpp
diff options
context:
space:
mode:
authorStephan Binner <stephan.binner@basyskom.com>2017-07-29 08:46:49 +0200
committerStephan Binner <stephan.binner@basyskom.com>2017-08-10 05:37:17 +0000
commit414026ad9c3e92b1c6a715543175acb922d703e2 (patch)
tree70cab464b13ace5a3e3ab56e70347b4ee7f433e2 /src/widgets/styles/qwindowsstyle.cpp
parentd1a3e674b6b9a98e16aa26fe05688e7099cd2b9b (diff)
Convert features.scrollbar to QT_[REQUIRE_]CONFIG
Change-Id: Id6ea899c0fddf0de636701cfdc5f01ba20024976 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/widgets/styles/qwindowsstyle.cpp')
-rw-r--r--src/widgets/styles/qwindowsstyle.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widgets/styles/qwindowsstyle.cpp b/src/widgets/styles/qwindowsstyle.cpp
index 63f7cd43ef..fa5070b867 100644
--- a/src/widgets/styles/qwindowsstyle.cpp
+++ b/src/widgets/styles/qwindowsstyle.cpp
@@ -1499,7 +1499,7 @@ void QWindowsStyle::drawControl(ControlElement ce, const QStyleOption *opt, QPai
p->eraseRect(opt->rect);
break;
#endif // QT_NO_SPLITTER
-#ifndef QT_NO_SCROLLBAR
+#if QT_CONFIG(scrollbar)
case CE_ScrollBarSubLine:
case CE_ScrollBarAddLine: {
if ((opt->state & State_Sunken)) {
@@ -1586,7 +1586,7 @@ void QWindowsStyle::drawControl(ControlElement ce, const QStyleOption *opt, QPai
qDrawWinButton(p, opt->rect, pal, false, &opt->palette.brush(QPalette::Button));
}
break;
-#endif // QT_NO_SCROLLBAR
+#endif // QT_CONFIG(scrollbar)
case CE_HeaderSection: {
QBrush fill;
if (opt->state & State_On)
@@ -2143,7 +2143,7 @@ void QWindowsStyle::drawComplexControl(ComplexControl cc, const QStyleOptionComp
}
break;
#endif // QT_NO_SLIDER
-#ifndef QT_NO_SCROLLBAR
+#if QT_CONFIG(scrollbar)
case CC_ScrollBar:
if (const QStyleOptionSlider *scrollbar = qstyleoption_cast<const QStyleOptionSlider *>(opt)) {
QStyleOptionSlider newScrollbar = *scrollbar;
@@ -2152,7 +2152,7 @@ void QWindowsStyle::drawComplexControl(ComplexControl cc, const QStyleOptionComp
QCommonStyle::drawComplexControl(cc, &newScrollbar, p, widget);
}
break;
-#endif // QT_NO_SCROLLBAR
+#endif // QT_CONFIG(scrollbar)
#if QT_CONFIG(combobox)
case CC_ComboBox:
if (const QStyleOptionComboBox *cmb = qstyleoption_cast<const QStyleOptionComboBox *>(opt)) {