summaryrefslogtreecommitdiffstats
path: root/src/designer/src/components/formeditor/formwindow_widgetstack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/designer/src/components/formeditor/formwindow_widgetstack.cpp')
-rw-r--r--src/designer/src/components/formeditor/formwindow_widgetstack.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/designer/src/components/formeditor/formwindow_widgetstack.cpp b/src/designer/src/components/formeditor/formwindow_widgetstack.cpp
index a7e77eecf..c9fc88f04 100644
--- a/src/designer/src/components/formeditor/formwindow_widgetstack.cpp
+++ b/src/designer/src/components/formeditor/formwindow_widgetstack.cpp
@@ -47,14 +47,14 @@ FormWindowWidgetStack::FormWindowWidgetStack(QObject *parent) :
m_formContainerLayout(new QStackedLayout),
m_layout(new QStackedLayout)
{
- m_layout->setMargin(0);
+ m_layout->setContentsMargins(QMargins());
m_layout->setSpacing(0);
m_layout->setStackingMode(QStackedLayout::StackAll);
// We choose a QStackedLayout as immediate layout for
// the form windows as it ignores the sizePolicy of
// its child (for example, Fixed would cause undesired side effects).
- m_formContainerLayout->setMargin(0);
+ m_formContainerLayout->setContentsMargins(QMargins());
m_formContainer->setObjectName(QStringLiteral("formContainer"));
m_formContainer->setLayout(m_formContainerLayout);
m_formContainerLayout->setStackingMode(QStackedLayout::StackAll);