forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user