Debugger: Streamline watch editing code.

Implement WatchModel::data() to return the right values
for Qt::EditRole, obsoleting the role matching in the delegate.
Similarly, handle Qt::EditRole in setData(), leaving only
'Change watch expression' in the delegate, which removes
and recreates a row, causing crashes when done in setData().
This commit is contained in:
Friedemann Kleint
2010-09-24 10:35:22 +02:00
parent b87edd821d
commit f536079585
4 changed files with 63 additions and 83 deletions

View File

@@ -240,8 +240,6 @@ enum ModelRoles
RequestToggleWatchRole,
RequestToolTipByExpressionRole,
RequestClearCppCodeModelSnapshotRole,
RequestAssignValueRole,
RequestAssignTypeRole,
RequestWatchExpressionRole,
RequestRemoveWatchExpressionRole,