Debugger: Don't update watch view needlessly

Column width computation is not cheap.

Change-Id: I615e1f9888f32171c478bfa2be565a91d669e8a2
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
hjk
2015-03-26 16:59:51 +01:00
parent 179d4aea67
commit b0977f8322
2 changed files with 2 additions and 2 deletions

View File

@@ -1947,7 +1947,6 @@ void DebuggerPluginPrivate::updateState(DebuggerEngine *engine)
QTC_ASSERT(!engine->isSlaveEngine(), return); QTC_ASSERT(!engine->isSlaveEngine(), return);
m_threadBox->setCurrentIndex(engine->threadsHandler()->currentThreadIndex()); m_threadBox->setCurrentIndex(engine->threadsHandler()->currentThreadIndex());
engine->watchHandler()->updateWatchersWindow();
const DebuggerState state = engine->state(); const DebuggerState state = engine->state();
//showMessage(QString::fromLatin1("PLUGIN SET STATE: ") //showMessage(QString::fromLatin1("PLUGIN SET STATE: ")

View File

@@ -877,7 +877,8 @@ bool WatchModel::setData(const QModelIndex &idx, const QVariant &value, int role
} else { } else {
m_expandedINames.remove(item->iname); m_expandedINames.remove(item->iname);
} }
emit columnAdjustmentRequested(); if (item->iname.contains('.'))
emit columnAdjustmentRequested();
break; break;
case LocalsTypeFormatRole: case LocalsTypeFormatRole: