Feature request #2774

enable double-click to zoom to bookmarks

Added by Alister Hood over 12 years ago. Updated over 11 years ago.

Assignee:nobody -
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.

Associated revisions

Revision 9ae32d32
Added by Steven Mizuno over 11 years ago

applied #3863 (fixes #2774)

Revision bc30e89b
Added by Steven Mizuno over 11 years ago

applied #3863 (fixes #2774)


#1 Updated by Alister Hood almost 12 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
<   // connect the slot up to catch when a bookmark is double-clicked
<   connect( lstBookmarks, SIGNAL( doubleClicked(QTreeWidgetItem*) ), this, SLOT( on_lstBookmarks_doubleClicked( QTreeWidgetItem * ) ) );
< 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

#2 Updated by Alister Hood almost 12 years ago

Oops - don't worry about the diff of the .ui file in that last line - it was just whitespace.

#3 Updated by Jürgen Fischer over 11 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

fixed in commit 9ae32d32b2cbc82eee29e550f6b2a2b33d3043e4

Also available in: Atom PDF