From 40727028d631ac2b84d886371259cd1094299406 Mon Sep 17 00:00:00 2001 From: mfreiholz Date: Tue, 5 Apr 2016 07:54:12 +0200 Subject: [PATCH] Fix version check for QLayout::replaceWidget() --- AdvancedDockingSystem/src/ContainerWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AdvancedDockingSystem/src/ContainerWidget.cpp b/AdvancedDockingSystem/src/ContainerWidget.cpp index 16f04b2..f4af5c0 100644 --- a/AdvancedDockingSystem/src/ContainerWidget.cpp +++ b/AdvancedDockingSystem/src/ContainerWidget.cpp @@ -645,7 +645,7 @@ SectionWidget* ContainerWidget::dropContentOuterHelper(QLayout* l, const Interna QSplitter* sp = newSplitter(orientation); if (append) { -#if QT_VERSION >= 0x050000 +#if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0) QLayoutItem* li = l->replaceWidget(oldsp, sp); sp->addWidget(oldsp); sp->addWidget(sw); @@ -661,7 +661,7 @@ SectionWidget* ContainerWidget::dropContentOuterHelper(QLayout* l, const Interna } else { -#if QT_VERSION >= 0x050000 +#if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0) sp->addWidget(sw); QLayoutItem* li = l->replaceWidget(oldsp, sp); sp->addWidget(oldsp);