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:
hjk
2010-07-14 15:38:20 +02:00
parent bc325eb9ab
commit dc6480fd6b
2 changed files with 11 additions and 0 deletions

View File

@@ -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());