From: José Fonseca Date: Sun, 30 Oct 2011 10:56:04 +0000 (+0000) Subject: Lookup call state on double-click. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=63d59406e8f68dcf88e630c21b08da05e82b9b80;p=apitrace Lookup call state on double-click. --- 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();