From c20cd4d98ea43275bd8859581e273d69a90c3413 Mon Sep 17 00:00:00 2001 From: Nikita Krupenko Date: Thu, 23 Mar 2017 22:20:31 +0200 Subject: Fix warnings for -no-feature-dockwidget Change-Id: Id1f04f9ff6da9bec07068d4ebed15f8bd29105af Reviewed-by: Stephan Binner Reviewed-by: Paul Olav Tvete Reviewed-by: Ulf Hermann --- src/widgets/widgets/qmainwindowlayout.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/widgets/widgets/qmainwindowlayout.cpp') diff --git a/src/widgets/widgets/qmainwindowlayout.cpp b/src/widgets/widgets/qmainwindowlayout.cpp index 640154063e..d15af3505b 100644 --- a/src/widgets/widgets/qmainwindowlayout.cpp +++ b/src/widgets/widgets/qmainwindowlayout.cpp @@ -2432,6 +2432,9 @@ QLayoutItem *QMainWindowLayout::unplug(QWidget *widget, bool group) } #endif +#if !QT_CONFIG(dockwidget) && !QT_CONFIG(tabbar) + Q_UNUSED(group); +#endif layoutState.unplug(path ,&savedState); savedState.fitLayout(); -- cgit v1.2.3