[QGIS Commit] r9509 - trunk/qgis/src/plugins/georeferencer

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Oct 21 13:09:48 EDT 2008


Author: homann
Date: 2008-10-21 13:09:47 -0400 (Tue, 21 Oct 2008)
New Revision: 9509

Modified:
   trunk/qgis/src/plugins/georeferencer/qgspointdialog.cpp
Log:
Added reading of QGIS option for wheel action to georeferencer. Fixes #1254

Modified: trunk/qgis/src/plugins/georeferencer/qgspointdialog.cpp
===================================================================
--- trunk/qgis/src/plugins/georeferencer/qgspointdialog.cpp	2008-10-21 08:13:59 UTC (rev 9508)
+++ trunk/qgis/src/plugins/georeferencer/qgspointdialog.cpp	2008-10-21 17:09:47 UTC (rev 9509)
@@ -21,6 +21,7 @@
 #include <QMouseEvent>
 #include <QPainter>
 #include <QTextStream>
+#include <QSettings>
 
 #include "qgisinterface.h"
 #include "qgsapplication.h"
@@ -563,6 +564,11 @@
   mToolDeletePoint = new QgsGeorefTool( mCanvas, this, FALSE /* addPoint */ );
   mToolDeletePoint->setAction( mActionDeletePoint );
 
+  QSettings mySettings;
+  int action = mySettings.value( "/qgis/wheel_action", 0 ).toInt();
+  double zoomFactor = mySettings.value( "/qgis/zoom_factor", 2 ).toDouble();
+  mCanvas->setWheelAction(( QgsMapCanvas::WheelAction ) action, zoomFactor );
+
   // set the currently supported transforms
   cmbTransformType->addItem( tr( "Linear" ) );
   cmbTransformType->addItem( tr( "Helmert" ) );



More information about the QGIS-commit mailing list