Commit f5af022a authored by hjk's avatar hjk
Browse files

Debugger: Remove unused code in WatchModel



Change-Id: I34464bf435dcf87eb375b8c1e79e29ad4f8050b4
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 63eac438
......@@ -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
}
m_resetLocationScheduled = false;
}
void WatchHandler::setCurrentItem(const QByteArray &iname)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment