Opened 14 years ago

Closed 13 years ago

#2774 closed enhancement (fixed)

enable double-click to zoom to bookmarks

Reported by: Alister Owned by: nobody
Priority: minor: annoyance Milestone: Version 1.7.0
Component: GUI Version: Trunk
Keywords: bookmarks dialog Cc:
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

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.

Change History (4)

comment:1 by pcav, 14 years ago

Milestone: Version 1.5.0Version 1.6.0

comment:2 by Alister, 13 years ago

Platform: WindowsAll
Version: 1.4.0Trunk

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

comment:3 by Alister, 13 years ago

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

comment:4 by jef, 13 years ago

Resolution: fixed
Status: newclosed

fixed in commit 9ae32d32b2cbc82eee29e550f6b2a2b33d3043e4

Note: See TracTickets for help on using tickets.