Debugger: Rename MainWindow::{set,add}SubPerspectiveSwitcher

We'll need another one for GammaRay, and it's practically already
working as 'add', not 'set'. So fix the mis-nomer.

Change-Id: I1713ced6c39082dae0121b8d670c4676807c1602
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2018-09-19 08:16:20 +02:00
parent 6ea686faa9
commit 982a019bfb
2 changed files with 3 additions and 3 deletions

View File

@@ -332,7 +332,7 @@ QWidget *DebuggerMainWindow::centralWidgetStack()
return theMainWindow ? theMainWindow->d->m_centralWidgetStack : nullptr; return theMainWindow ? theMainWindow->d->m_centralWidgetStack : nullptr;
} }
void DebuggerMainWindow::setSubPerspectiveSwitcher(QWidget *widget) void DebuggerMainWindow::addSubPerspectiveSwitcher(QWidget *widget)
{ {
widget->setVisible(false); widget->setVisible(false);
widget->setProperty("panelwidget", true); widget->setProperty("panelwidget", true);
@@ -402,7 +402,7 @@ void DebuggerMainWindowPrivate::selectPerspective(Perspective *perspective)
QWidget *createModeWindow(const Core::Id &mode, QWidget *switcher) QWidget *createModeWindow(const Core::Id &mode, QWidget *switcher)
{ {
theMainWindow->setSubPerspectiveSwitcher(switcher); theMainWindow->addSubPerspectiveSwitcher(switcher);
auto editorHolderLayout = new QVBoxLayout; auto editorHolderLayout = new QVBoxLayout;
editorHolderLayout->setMargin(0); editorHolderLayout->setMargin(0);

View File

@@ -128,7 +128,7 @@ public:
static void onModeChanged(Core::Id mode); static void onModeChanged(Core::Id mode);
static QWidget *centralWidgetStack(); static QWidget *centralWidgetStack();
void setSubPerspectiveSwitcher(QWidget *widget); void addSubPerspectiveSwitcher(QWidget *widget);
private: private:
DebuggerMainWindow(); DebuggerMainWindow();