Skip to content

Commit

Permalink
Use double spin boxes to insert default snapping tolarance and search…
Browse files Browse the repository at this point in the history
… 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 a07b328
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 28 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsoptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
38 changes: 12 additions & 26 deletions src/ui/qgsoptionsbase.ui
Original file line number Diff line number Diff line change
Expand Up @@ -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" >
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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" />
Expand Down

0 comments on commit a07b328

Please sign in to comment.