forked from qt-creator/qt-creator
Debugger: Add Perspective::name() accessor
Will be needed again by GammaRay. Change-Id: I9afe61dd1db4a1ba4ec95a6abd089e12c6cbcd9a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -593,6 +593,11 @@ QString Perspective::id() const
|
||||
return d->m_id;
|
||||
}
|
||||
|
||||
QString Perspective::name() const
|
||||
{
|
||||
return d->m_name;
|
||||
}
|
||||
|
||||
void Perspective::setAboutToActivateCallback(const Perspective::Callback &cb)
|
||||
{
|
||||
d->m_aboutToActivateCallback = cb;
|
||||
|
||||
@@ -87,6 +87,7 @@ public:
|
||||
void setShouldPersistChecker(const ShouldPersistChecker &checker);
|
||||
|
||||
QString id() const; // Currently used by GammaRay plugin.
|
||||
QString name() const;
|
||||
QWidget *centralWidget() const;
|
||||
|
||||
using Callback = std::function<void()>;
|
||||
|
||||
Reference in New Issue
Block a user