changeset 19725:480f0fc56bbf

Allow return/double-click to activate dock file-browser open (bug #44216) * files-dock-widget.cc (files_dock_widget::files_dock_widget): Change file list tool tip to be inclusive of typing return key and double-clicking mouse and right-click alternatives. Change connection to FileTreeViewer to be activated() as opposed to doubleClicked().
author Daniel J Sebald <daniel.sebald@ieee.org>
date Tue, 10 Feb 2015 02:37:29 -0600
parents bd1369a2a651
children b30cd22e6471
files libgui/src/files-dock-widget.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/files-dock-widget.cc	Mon Feb 09 09:56:25 2015 +0100
+++ b/libgui/src/files-dock-widget.cc	Tue Feb 10 02:37:29 2015 -0600
@@ -199,7 +199,7 @@
   _file_tree_view->setSortingEnabled (true);
   _file_tree_view->setAlternatingRowColors (true);
   _file_tree_view->setAnimated (true);
-  _file_tree_view->setToolTip (tr ("Double-click a file to open it"));
+  _file_tree_view->setToolTip (tr ("Activate to open in editor, right click for alternatives"));
 
   // get sort column and order as well as cloumn state (order and width)
 
@@ -219,7 +219,7 @@
   _current_directory->setEditText (
     _file_system_model->fileInfo (rootPathIndex).  absoluteFilePath ());
 
-  connect (_file_tree_view, SIGNAL (doubleClicked (const QModelIndex &)),
+  connect (_file_tree_view, SIGNAL (activated (const QModelIndex &)),
            this, SLOT (item_double_clicked (const QModelIndex &)));
 
   // add context menu to tree_view