Debugger: Shift some perspective related API to the perspective class

Also, use QString uniformly for the (now rarely used) perspective ids.

Change-Id: I682062e7d179d0fcfd309e7714713bd1218bd8bb
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
hjk
2018-08-22 10:53:34 +02:00
parent aca14a36e9
commit e6e38df436
8 changed files with 37 additions and 52 deletions

View File

@@ -89,11 +89,13 @@ public:
void setAboutToActivateCallback(const Callback &cb);
void aboutToActivate() const;
void setParentPerspective(const QByteArray &parentPerspective);
void setParentPerspective(const QString &parentPerspectiveId);
void setEnabled(bool enabled);
void select();
static Perspective *currentPerspective();
static Perspective *findPerspective(const QString &perspectiveId);
Core::Context context() const;
@@ -122,7 +124,6 @@ public:
static void showStatusMessage(const QString &message, int timeoutMS);
static void onModeChanged(Core::Id mode);
static Perspective *findPerspective(const QByteArray &perspectiveId);
static QWidget *centralWidgetStack();
private: