diff options
Diffstat (limited to 'src/plugins/debugger/debuggermainwindow.cpp')
-rw-r--r-- | src/plugins/debugger/debuggermainwindow.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/plugins/debugger/debuggermainwindow.cpp b/src/plugins/debugger/debuggermainwindow.cpp index 70641b4a37..b77a2536a6 100644 --- a/src/plugins/debugger/debuggermainwindow.cpp +++ b/src/plugins/debugger/debuggermainwindow.cpp @@ -132,8 +132,6 @@ class DebuggerMainWindowPrivate : public QObject public: DebuggerMainWindowPrivate(DebuggerMainWindow *parent); - void createToolBar(); - void selectPerspective(Perspective *perspective); void depopulateCurrentPerspective(); void populateCurrentPerspective(); @@ -207,18 +205,18 @@ DebuggerMainWindowPrivate::DebuggerMainWindowPrivate(DebuggerMainWindow *parent) // "Engine switcher" style comboboxes auto subPerspectiveSwitcher = new QWidget; m_subPerspectiveSwitcherLayout = new QHBoxLayout(subPerspectiveSwitcher); - m_subPerspectiveSwitcherLayout->setMargin(0); + m_subPerspectiveSwitcherLayout->setContentsMargins(0, 0, 0, 0); m_subPerspectiveSwitcherLayout->setSpacing(0); // All perspective toolbars will get inserted here, but only // the current perspective's toolbar is set visible. auto innerTools = new QWidget; m_innerToolsLayout = new QHBoxLayout(innerTools); - m_innerToolsLayout->setMargin(0); + m_innerToolsLayout->setContentsMargins(0, 0, 0, 0); m_innerToolsLayout->setSpacing(0); auto hbox = new QHBoxLayout(toolbar); - hbox->setMargin(0); + hbox->setContentsMargins(0, 0, 0, 0); hbox->setSpacing(0); hbox->addWidget(m_perspectiveChooser); hbox->addWidget(subPerspectiveSwitcher); @@ -736,7 +734,7 @@ Perspective::Perspective(const QString &id, const QString &name, theMainWindow->d->m_innerToolsLayout->addWidget(d->m_innerToolBar); d->m_innerToolBarLayout = new QHBoxLayout(d->m_innerToolBar); - d->m_innerToolBarLayout->setMargin(0); + d->m_innerToolBarLayout->setContentsMargins(0, 0, 0, 0); d->m_innerToolBarLayout->setSpacing(0); } |