forked from qt-creator/qt-creator
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:
@@ -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);
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user