]> git.cworth.org Git - apitrace/blobdiff - gui/mainwindow.cpp
Lookup call state on double-click.
[apitrace] / gui / mainwindow.cpp
index 672ad643b42713a3965f302ee4c7e9f1d1a06c4b..039889ca1aa5bd0a9987cb35d2cc38eb808654cc 100644 (file)
@@ -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)));