Feature request #2774
enable double-click to zoom to bookmarks
|Pull Request or Patch supplied:||Resolution:||fixed|
|Easy fix?:||No||Copied to github as #:||12834|
It would be efficient and intuitive if you could double-click on a bookmark in the bookmarks dialogue to zoom to the bookmark and optionally close the dialogue.
#1 Updated by Alister Hood over 9 years ago
Hmmm. Maybe this should be a bug, not a feature request.
Some of the code is already there; it looks like the feature was not fully reimplemented in the refactoring.
I really don't know what I'm doing, but I thought this change would work. No such luck :(
diff -r qgis/src/app/qgsbookmarks.cpp qgis_orig/src/app/qgsbookmarks.cpp 69,70d68 < // connect the slot up to catch when a bookmark is double-clicked < connect( lstBookmarks, SIGNAL( doubleClicked(QTreeWidgetItem*) ), this, SLOT( on_lstBookmarks_doubleClicked( QTreeWidgetItem * ) ) ); 193c191 < void [[QgsBookmarks]]::on_lstBookmarks_doubleClicked( QTreeWidgetItem *item ) --- > void [[QgsBookmarks]]::on_lstBookmarks_doubleClicked( QTreeWidgetItem *lvi ) diff -r qgis/src/ui/qgsbookmarksbase.ui qgis_orig/src/ui/qgsbookmarksbase.ui