]> git.cworth.org Git - apitrace/commitdiff
Lookup call state on double-click.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Sun, 30 Oct 2011 10:56:04 +0000 (10:56 +0000)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 17 Mar 2012 21:57:41 +0000 (21:57 +0000)
gui/mainwindow.cpp
gui/mainwindow.h

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)));
 
index 59c9ba78010f6bcd0e0ab9a5f2b43d4d19062daf..66be2e20d88692802fe31c5952947077db237747 100644 (file)
@@ -41,6 +41,7 @@ public slots:
 
 private slots:
     void callItemSelected(const QModelIndex &index);
+    void callItemActivated(const QModelIndex &index);
     void createTrace();
     void openTrace();
     void replayStart();