mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-26 08:01:32 +08:00
Fix version check for QLayout::replaceWidget()
This commit is contained in:
parent
a8383d14d0
commit
40727028d6
@ -645,7 +645,7 @@ SectionWidget* ContainerWidget::dropContentOuterHelper(QLayout* l, const Interna
|
|||||||
QSplitter* sp = newSplitter(orientation);
|
QSplitter* sp = newSplitter(orientation);
|
||||||
if (append)
|
if (append)
|
||||||
{
|
{
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)
|
||||||
QLayoutItem* li = l->replaceWidget(oldsp, sp);
|
QLayoutItem* li = l->replaceWidget(oldsp, sp);
|
||||||
sp->addWidget(oldsp);
|
sp->addWidget(oldsp);
|
||||||
sp->addWidget(sw);
|
sp->addWidget(sw);
|
||||||
@ -661,7 +661,7 @@ SectionWidget* ContainerWidget::dropContentOuterHelper(QLayout* l, const Interna
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)
|
||||||
sp->addWidget(sw);
|
sp->addWidget(sw);
|
||||||
QLayoutItem* li = l->replaceWidget(oldsp, sp);
|
QLayoutItem* li = l->replaceWidget(oldsp, sp);
|
||||||
sp->addWidget(oldsp);
|
sp->addWidget(oldsp);
|
||||||
|
Loading…
Reference in New Issue
Block a user