From 63d59406e8f68dcf88e630c21b08da05e82b9b80 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Sun, 30 Oct 2011 10:56:04 +0000 Subject: [PATCH] Lookup call state on double-click. --- gui/mainwindow.cpp | 6 ++++++ gui/mainwindow.h | 1 + 2 files changed, 7 insertions(+) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 672ad64..039889c 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -148,6 +148,10 @@ void MainWindow::callItemSelected(const QModelIndex &index) } } +void MainWindow::callItemActivated(const QModelIndex &index) { + lookupState(); +} + void MainWindow::replayStart() { if (m_trace->isSaving()) { @@ -779,6 +783,8 @@ void MainWindow::initConnections() connect(m_ui.callView->selectionModel(), SIGNAL(currentChanged(const QModelIndex &, const QModelIndex &)), this, SLOT(callItemSelected(const QModelIndex &))); + connect(m_ui.callView, SIGNAL(doubleClicked(const QModelIndex &)), + this, SLOT(callItemActivated(const QModelIndex &))); connect(m_ui.callView, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(customContextMenuRequested(QPoint))); diff --git a/gui/mainwindow.h b/gui/mainwindow.h index 59c9ba7..66be2e2 100644 --- a/gui/mainwindow.h +++ b/gui/mainwindow.h @@ -41,6 +41,7 @@ public slots: private slots: void callItemSelected(const QModelIndex &index); + void callItemActivated(const QModelIndex &index); void createTrace(); void openTrace(); void replayStart(); -- 2.43.0