Skip to content

Commit 18aaf33

Browse files
author
homann
committedOct 21, 2008
Added reading of QGIS option for wheel action to georeferencer. Fixes #1254
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9509 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/plugins/georeferencer/qgspointdialog.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <QMouseEvent>
2222
#include <QPainter>
2323
#include <QTextStream>
24+
#include <QSettings>
2425

2526
#include "qgisinterface.h"
2627
#include "qgsapplication.h"
@@ -563,6 +564,11 @@ void QgsPointDialog::initialize()
563564
mToolDeletePoint = new QgsGeorefTool( mCanvas, this, FALSE /* addPoint */ );
564565
mToolDeletePoint->setAction( mActionDeletePoint );
565566

567+
QSettings mySettings;
568+
int action = mySettings.value( "/qgis/wheel_action", 0 ).toInt();
569+
double zoomFactor = mySettings.value( "/qgis/zoom_factor", 2 ).toDouble();
570+
mCanvas->setWheelAction(( QgsMapCanvas::WheelAction ) action, zoomFactor );
571+
566572
// set the currently supported transforms
567573
cmbTransformType->addItem( tr( "Linear" ) );
568574
cmbTransformType->addItem( tr( "Helmert" ) );

0 commit comments

Comments
 (0)
Please sign in to comment.