From f3926963ea687c6dbac3d6e3fdb832f81bddf903 Mon Sep 17 00:00:00 2001 From: Peter Colberg Date: Wed, 30 Dec 2015 23:16:47 -0500 Subject: historyform: Show call details of current item The signal QAbstractItemView::activated() is emitted only when double-clicking or pressing the Enter key on a current item. Listen to signal QItemSelectionModel::currentChanged(), which is emitted when the current item is changed with a single click or the arrow keys. --- src/gui/historyform.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/historyform.h') diff --git a/src/gui/historyform.h b/src/gui/historyform.h index 76ea161..dd6b6b2 100644 --- a/src/gui/historyform.h +++ b/src/gui/historyform.h @@ -20,7 +20,6 @@ public slots: virtual void update(); virtual void show(); virtual void closeEvent( QCloseEvent * e ); - virtual void showCallDetails( QModelIndex item ); virtual void popupMenu( QPoint pos ); virtual void call( QModelIndex index ); virtual void call( void ); @@ -45,6 +44,8 @@ private: void init(); void destroy(); +private slots: + void showCallDetails(const QModelIndex &); }; -- cgit v1.2.3