forked from qt-creator/qt-creator
WatchHandler: Move generationCounter to individual WatchModels
Change-Id: I39cdd48ed02cbcf6702076245c765cb6c8926c1b Reviewed-on: http://codereview.qt-project.org/4429 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -107,7 +107,7 @@ private:
|
||||
|
||||
void emitDataChanged(int column,
|
||||
const QModelIndex &parentIndex = QModelIndex());
|
||||
void beginCycle(); // Called at begin of updateLocals() cycle.
|
||||
void beginCycle(bool fullCycle); // Called at begin of updateLocals() cycle.
|
||||
void endCycle(); // Called after all results have been received.
|
||||
|
||||
friend QDebug operator<<(QDebug d, const WatchModel &m);
|
||||
@@ -127,6 +127,7 @@ private:
|
||||
void formatRequests(QByteArray *out, const WatchItem *item) const;
|
||||
DebuggerEngine *engine() const;
|
||||
int itemFormat(const WatchData &data) const;
|
||||
int m_generationCounter;
|
||||
|
||||
WatchHandler *m_handler;
|
||||
WatchType m_type;
|
||||
@@ -151,7 +152,7 @@ public:
|
||||
|
||||
void beginCycle(bool fullCycle = true); // Called at begin of updateLocals() cycle
|
||||
void updateWatchers(); // Called after locals are fetched
|
||||
void endCycle(bool fullCycle = true); // Called after all results have been received
|
||||
void endCycle(); // Called after all results have been received
|
||||
void showEditValue(const WatchData &data);
|
||||
|
||||
void insertData(const WatchData &data);
|
||||
@@ -220,6 +221,8 @@ private:
|
||||
WatchModel *m_watchers;
|
||||
WatchModel *m_tooltips;
|
||||
DebuggerEngine *m_engine;
|
||||
|
||||
int m_watcherCounter;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user