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().
Showing
- src/plugins/debugger/debuggerconstants.h 0 additions, 2 deletionssrc/plugins/debugger/debuggerconstants.h
- src/plugins/debugger/watchhandler.cpp 46 additions, 36 deletionssrc/plugins/debugger/watchhandler.cpp
- src/plugins/debugger/watchhandler.h 1 addition, 1 deletionsrc/plugins/debugger/watchhandler.h
- src/plugins/debugger/watchwindow.cpp 16 additions, 44 deletionssrc/plugins/debugger/watchwindow.cpp
Loading
Please register or sign in to comment