diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index 6fd7721d8f5..68381aed0f9 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -201,7 +201,6 @@ public: bool setData(const QModelIndex &idx, const QVariant &value, int role); - void invalidateAll(const QModelIndex &parentIndex = QModelIndex()); void insertDataItem(const WatchData &data, bool destructive); void reinsertAllData(); void reinsertAllDataHelper(WatchItem *item, QList *data); @@ -633,14 +632,6 @@ void WatchItem::fetchMore() } } -void WatchModel::invalidateAll(const QModelIndex &parentIndex) -{ - QModelIndex idx1 = index(0, 0, parentIndex); - QModelIndex idx2 = index(rowCount(parentIndex) - 1, columnCount(parentIndex) - 1, parentIndex); - if (idx1.isValid() && idx2.isValid()) - emit dataChanged(idx1, idx2); -} - // Truncate value for item view, maintaining quotes. static QString truncateValue(QString v) { @@ -1759,10 +1750,7 @@ void WatchHandler::scheduleResetLocation() void WatchHandler::resetLocation() { - if (m_resetLocationScheduled) { - m_resetLocationScheduled = false; - //m_model->invalidateAll(); FIXME - } + m_resetLocationScheduled = false; } void WatchHandler::setCurrentItem(const QByteArray &iname)