Skip to content

Commit

Permalink
Added reading of QGIS option for wheel action to georeferencer. Fixes #…
Browse files Browse the repository at this point in the history
…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 9ef779f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/plugins/georeferencer/qgspointdialog.cpp
Original file line number Diff line number Diff line change
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 9ef779f

Please sign in to comment.