debugger: rework WatchModel

It's one model for all locals, watch, return, tooltip and inspector
data. This allows more streamlined code paths and better isolation
of the model data from the WatchHandler. WatchItems are now registered
in a hash indexed by iname, so inames can be used as the primary
handle to watch data in the WatchHandler interface.

Change-Id: Idac0a808b5d785307496d1de4198a1f2e9ce3880
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
This commit is contained in:
hjk
2012-05-18 02:28:41 +02:00
parent c14c1248ed
commit e11a3a7697
27 changed files with 909 additions and 948 deletions

View File

@@ -49,15 +49,17 @@ class WatchTreeView : public BaseTreeView
Q_OBJECT
public:
enum Type { ReturnType, LocalsType, TooltipType, WatchersType, InspectType };
enum Type { LocalsType, InspectType, WatchersType, ReturnType, TooltipType };
explicit WatchTreeView(Type type, QWidget *parent = 0);
Type type() const { return m_type; }
void setModel(QAbstractItemModel *model);
void reset();
public slots:
void watchExpression(const QString &exp);
void removeWatchExpression(const QString &exp);
void handleItemIsExpanded(const QModelIndex &idx);
private:
Q_SLOT void resetHelper();