forked from qt-creator/qt-creator
debugger: open a new watch item on double click in the locals&watchers view
An attempt to fix http://bugreports.qt.nokia.com/browse/QTCREATORBUG-1841
This commit is contained in:
@@ -202,6 +202,16 @@ void WatchWindow::dropEvent(QDropEvent *ev)
|
||||
//QTreeView::dropEvent(ev);
|
||||
}
|
||||
|
||||
void WatchWindow::mouseDoubleClickEvent(QMouseEvent *ev)
|
||||
{
|
||||
const QModelIndex idx = indexAt(ev->pos());
|
||||
if (!idx.isValid()) {
|
||||
setModelData(RequestWatchExpressionRole, QString("<Edit>"));
|
||||
return;
|
||||
}
|
||||
QTreeView::mouseDoubleClickEvent(ev);
|
||||
}
|
||||
|
||||
void WatchWindow::contextMenuEvent(QContextMenuEvent *ev)
|
||||
{
|
||||
const QModelIndex idx = indexAt(ev->pos());
|
||||
|
||||
Reference in New Issue
Block a user