[QGIS-trac] Re: [Quantum GIS] #2774: enable double-click to zoom to bookmarks

Quantum GIS qgis at qgis.org
Sun Mar 6 23:00:28 EST 2011


#2774: enable double-click to zoom to bookmarks
--------------------------------+-------------------------------------------
   Reporter:  Alister           |              Owner:  nobody       
       Type:  enhancement       |             Status:  new          
   Priority:  minor: annoyance  |          Milestone:  Version 1.7.0
  Component:  GUI               |            Version:  Trunk        
   Keywords:  bookmarks dialog  |   Platform_version:               
   Platform:  All               |           Must_fix:  No           
Status_info:  0                 |  
--------------------------------+-------------------------------------------
Changes (by Alister):

  * platform:  Windows => All
  * version:  1.4.0 => Trunk


Comment:

 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
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/2774#comment:2>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list