forked from qt-creator/qt-creator
Debugger: Move ownership of perspective dock widgets to plugins
Similar to the previous patch, but affecting more plugins: with dynamic perspectives lifetime is better managed close to the code that knows how to (re-)construct the items. Change-Id: I0e7bfcf769d198ec2afa88b972be900baa1b6a46 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -44,7 +44,7 @@ class ClangTool : public QObject
|
||||
|
||||
public:
|
||||
ClangTool(const QString &name);
|
||||
virtual ~ClangTool() = default;
|
||||
virtual ~ClangTool();
|
||||
|
||||
virtual void startTool(bool askUserForFileSelection) = 0;
|
||||
|
||||
@@ -72,7 +72,7 @@ protected:
|
||||
void initDiagnosticView();
|
||||
|
||||
ClangToolsDiagnosticModel *m_diagnosticModel = nullptr;
|
||||
Debugger::DetailedErrorView *m_diagnosticView = nullptr;
|
||||
std::unique_ptr<Debugger::DetailedErrorView> m_diagnosticView;
|
||||
|
||||
QAction *m_startAction = nullptr;
|
||||
QAction *m_stopAction = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user