Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
homann committed Oct 21, 2008
1 parent e38f197 commit 18aaf33
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/plugins/georeferencer/qgspointdialog.cpp
Expand Up @@ -21,6 +21,7 @@
#include <QMouseEvent>
#include <QPainter>
#include <QTextStream>
#include <QSettings>

#include "qgisinterface.h"
#include "qgsapplication.h"
Expand Down Expand Up @@ -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" ) );
Expand Down

0 comments on commit 18aaf33

Please sign in to comment.