Debugger: Re-organize registration of sub-perspective switcher

Change-Id: Ia3559e5c4793bb297c9bdfbdf32a56d285ee0700
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2018-09-11 11:24:19 +02:00
parent 51adb199ab
commit 375791ec58
4 changed files with 24 additions and 17 deletions

View File

@@ -79,9 +79,10 @@ public:
void addToolBarAction(QAction *action);
void addToolBarAction(OptionalAction *action);
void addToolBarWidget(QWidget *widget);
void addToolBarSwitcher(QWidget *widget, bool owner);
void addToolbarSeparator();
void useSubPerspectiveSwitcher(QWidget *widget);
using ShouldPersistChecker = std::function<bool()>;
void setShouldPersistChecker(const ShouldPersistChecker &checker);
@@ -127,6 +128,7 @@ public:
static void onModeChanged(Core::Id mode);
static QWidget *centralWidgetStack();
void setSubPerspectiveSwitcher(QWidget *widget);
private:
DebuggerMainWindow();
@@ -137,6 +139,6 @@ private:
class DebuggerMainWindowPrivate *d = nullptr;
};
DEBUGGER_EXPORT QWidget *createModeWindow(const Core::Id &mode);
DEBUGGER_EXPORT QWidget *createModeWindow(const Core::Id &mode, QWidget *);
} // Utils