From bc5454d2c41873349ea32c42aca8fc794cba442e Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Fri, 7 Apr 2017 10:08:37 +0200 Subject: Fix build error with -no-feature-slider Change-Id: Ia74aeefdba3ac6b831aeeaff40600e30d90183d8 Reviewed-by: Oswald Buddenhagen Reviewed-by: Tasuku Suzuki Reviewed-by: Lars Knoll --- src/widgets/styles/qfusionstyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/styles/qfusionstyle.cpp b/src/widgets/styles/qfusionstyle.cpp index c874b12e45..123aa351cd 100644 --- a/src/widgets/styles/qfusionstyle.cpp +++ b/src/widgets/styles/qfusionstyle.cpp @@ -1956,10 +1956,10 @@ void QFusionStyle::drawComplexControl(ComplexControl control, const QStyleOption #if QT_CONFIG(spinbox) || QT_CONFIG(slider) QColor buttonColor = d->buttonColor(option->palette); + QColor gradientStopColor = buttonColor; #endif #if QT_CONFIG(slider) QColor gradientStartColor = buttonColor.lighter(118); - QColor gradientStopColor = buttonColor; #endif QColor outline = d->outline(option->palette); -- cgit v1.2.3