debugger: make assignment of simple types work again

This commit is contained in:
hjk
2009-03-19 15:33:11 +01:00
parent 00be68701e
commit 45e7ccc0fa
4 changed files with 14 additions and 8 deletions

View File

@@ -440,9 +440,6 @@ QVariant WatchHandler::data(const QModelIndex &idx, int role) const
const WatchData &data = m_displaySet.at(node);
switch (role) {
case Qt::EditRole:
return data.exp;
case Qt::DisplayRole: {
switch (idx.column()) {
case 0: return data.name;
@@ -496,6 +493,9 @@ QVariant WatchHandler::data(const QModelIndex &idx, int role) const
break;
}
case ExpressionRole:
return data.exp;
case INameRole:
return data.iname;