# HG changeset patch # User Daniel J Sebald # Date 1423557449 21600 # Node ID 480f0fc56bbf6e85866cc299b418ee3d481cd8b1 # Parent bd1369a2a6519264809c928826606dd8e7b9b93f 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(). diff -r bd1369a2a651 -r 480f0fc56bbf libgui/src/files-dock-widget.cc --- 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