Commit bc0f02c6 authored by hjk's avatar hjk

debugger: make ModulesHandler aware of its DebuggerEngine

Change-Id: I5f59eed83ac45a2d90c079101158e7e306fd9a3e
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent a8ba7054
......@@ -163,7 +163,7 @@ public:
m_targetState(DebuggerNotReady),
m_remoteSetupState(RemoteSetupNone),
m_inferiorPid(0),
m_modulesHandler(),
m_modulesHandler(engine),
m_registerHandler(),
m_sourceFilesHandler(),
m_stackHandler(),
......
......@@ -255,8 +255,9 @@ void ModulesModel::updateModule(const Module &module)
//
//////////////////////////////////////////////////////////////////
ModulesHandler::ModulesHandler()
ModulesHandler::ModulesHandler(DebuggerEngine *engine)
{
m_engine = engine;
m_model = new ModulesModel(this);
m_proxyModel = new QSortFilterProxyModel(this);
m_proxyModel->setSourceModel(m_model);
......
......@@ -42,6 +42,9 @@ class QSortFilterProxyModel;
QT_END_NAMESPACE
namespace Debugger {
class DebuggerEngine;
namespace Internal {
class ModulesModel;
......@@ -105,7 +108,7 @@ class ModulesHandler : public QObject
Q_OBJECT
public:
ModulesHandler();
explicit ModulesHandler(DebuggerEngine *engine);
QAbstractItemModel *model() const;
......@@ -117,6 +120,7 @@ public:
void removeAll();
private:
DebuggerEngine *m_engine;
ModulesModel *m_model;
QSortFilterProxyModel *m_proxyModel;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment