Skip to content
Permalink
Browse files
Use double spin boxes to insert default snapping tolarance and search…
… radius for vertex edits

git-svn-id: http://svn.osgeo.org/qgis/trunk@8062 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jan 28, 2008
1 parent 13b58c5 commit a07b328d674ac18892c95d12541dfb3a6bfacce9
Showing with 14 additions and 28 deletions.
  1. +2 −2 src/app/qgsoptions.cpp
  2. +12 −26 src/ui/qgsoptionsbase.ui
@@ -165,8 +165,8 @@ QgsOptions::QgsOptions(QWidget *parent, Qt::WFlags fl) :
myGreen = settings.value("/qgis/digitizing/line_color_green", 0).toInt();
myBlue = settings.value("/qgis/digitizing/line_color_blue", 0).toInt();
mLineColourToolButton->setColor(QColor(myRed, myGreen, myBlue));
mDefaultSnappingToleranceSpinBox->setValue(settings.value("/qgis/digitizing/default_snapping_tolerance", 0).toInt());
mSearchRadiusVertexEditSpinBox->setValue(settings.value("/qgis/digitizing/search_radius_vertex_edit", 10).toInt());
mDefaultSnappingToleranceSpinBox->setValue(settings.value("/qgis/digitizing/default_snapping_tolerance", 0).toDouble());
mSearchRadiusVertexEditSpinBox->setValue(settings.value("/qgis/digitizing/search_radius_vertex_edit", 10).toDouble());
}

//! Destructor
@@ -28,6 +28,16 @@
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="0" >
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QTabWidget" name="tabWidget" >
<property name="currentIndex" >
@@ -787,11 +797,7 @@
</spacer>
</item>
<item>
<widget class="QSpinBox" name="mDefaultSnappingToleranceSpinBox" >
<property name="maximum" >
<number>1000000000</number>
</property>
</widget>
<widget class="QDoubleSpinBox" name="mDefaultSnappingToleranceSpinBox" />
</item>
</layout>
</item>
@@ -824,17 +830,7 @@
</spacer>
</item>
<item>
<widget class="QSpinBox" name="mSearchRadiusVertexEditSpinBox" >
<property name="maximum" >
<number>1000000000</number>
</property>
<property name="minimum" >
<number>0</number>
</property>
<property name="value" >
<number>0</number>
</property>
</widget>
<widget class="QDoubleSpinBox" name="mSearchRadiusVertexEditSpinBox" />
</item>
</layout>
</item>
@@ -1120,16 +1116,6 @@
</widget>
</widget>
</item>
<item row="1" column="0" >
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />

0 comments on commit a07b328

Please sign in to comment.