Skip to content
Permalink
Browse files
Added reading of QGIS option for wheel action to georeferencer. Fixes #…
…1254

git-svn-id: http://svn.osgeo.org/qgis/trunk@9509 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Oct 21, 2008
1 parent 5fa4a71 commit 9ef779f3c3e07ab2ef28f36ef279642a1f59903f
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/plugins/georeferencer/qgspointdialog.cpp
@@ -21,6 +21,7 @@
#include <QMouseEvent>
#include <QPainter>
#include <QTextStream>
#include <QSettings>

#include "qgisinterface.h"
#include "qgsapplication.h"
@@ -563,6 +564,11 @@ void QgsPointDialog::initialize()
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" ) );

0 comments on commit 9ef779f

Please sign in to comment.