forked from qt-creator/qt-creator
Debugger: Remove unused code in WatchModel
Change-Id: I34464bf435dcf87eb375b8c1e79e29ad4f8050b4 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -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<WatchData> *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
|
||||
}
|
||||
}
|
||||
|
||||
void WatchHandler::setCurrentItem(const QByteArray &iname)
|
||||
|
Reference in New Issue
Block a user