From 8146fd5f8ccb144207811cbbc21ec12fc487ec4c Mon Sep 17 00:00:00 2001 From: Stephan Binner Date: Tue, 4 Apr 2017 09:46:05 +0200 Subject: Fix several unused warnings for misc disabled features Change-Id: Id42daf684abeeb888155d65eca143150d9c5f5a7 Reviewed-by: Paul Olav Tvete --- src/widgets/styles/qstylehelper.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/widgets/styles/qstylehelper.cpp') diff --git a/src/widgets/styles/qstylehelper.cpp b/src/widgets/styles/qstylehelper.cpp index 9b381c383b..ffb898df57 100644 --- a/src/widgets/styles/qstylehelper.cpp +++ b/src/widgets/styles/qstylehelper.cpp @@ -415,6 +415,8 @@ QColor backgroundColor(const QPalette &pal, const QWidget* widget) if (qobject_cast(widget) && widget->parent() && qobject_cast(widget->parent()->parent())) return widget->parentWidget()->parentWidget()->palette().color(QPalette::Base); +#else + Q_UNUSED(widget); #endif return pal.color(QPalette::Base); } -- cgit v1.2.3