Commit 99157fdd authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Do not keep layout as member

parent 154b00d6
......@@ -445,7 +445,6 @@ private:
AbstractKeyListModel *flatModel = nullptr;
AbstractKeyListModel *hierarchicalModel = nullptr;
QTabWidget tabWidget;
QVBoxLayout layout;
QAction *newAction = nullptr;
Actions currentPageActions;
Actions otherPageActions;
......@@ -454,14 +453,14 @@ private:
TabWidget::Private::Private(TabWidget *qq)
: q(qq),
tabWidget(q),
layout(q)
tabWidget(q)
{
auto layout = new QVBoxLayout{q};
layout->setContentsMargins(0, 0, 0, 0);
KDAB_SET_OBJECT_NAME(tabWidget);
KDAB_SET_OBJECT_NAME(layout);
layout.setContentsMargins(0, 0, 0, 0);
layout.addWidget(&tabWidget);
layout->addWidget(&tabWidget);
tabWidget.tabBar()->hide();
tabWidget.setMovable(true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment