Debugger: Remove some uses of semi-global currentEngine()

Make use of recent TreeModel improvements in various
tool views, push more operations into the engine-
owned data models, specifically context menu creation.

Change-Id: I479c97102b9fb81611c6461c6df1cec59295179a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
hjk
2016-07-18 12:36:31 +02:00
committed by hjk
parent 84f1466b01
commit 2d79bdc29c
36 changed files with 2636 additions and 3364 deletions

View File

@@ -32,10 +32,14 @@
#include <QObject>
#include <QSharedPointer>
#include <functional>
QT_BEGIN_NAMESPACE
class QIcon;
class QMessageBox;
class QWidget;
class QMenu;
class QAction;
QT_END_NAMESPACE
namespace CPlusPlus { class Snapshot; }
@@ -107,5 +111,12 @@ QMessageBox *showMessageBox(int icon, const QString &title,
bool isReverseDebuggingEnabled();
QAction *addAction(QMenu *menu, const QString &display, bool on,
const std::function<void()> &onTriggered = {});
QAction *addAction(QMenu *menu, const QString &d1, const QString &d2, bool on,
const std::function<void()> &onTriggered);
QAction *addCheckableAction(QMenu *menu, const QString &display, bool on, bool checked,
const std::function<void()> &onTriggered);
} // namespace Internal
} // namespace Debugger