Skip to content

Commit 542339e

Browse files
author
timlinux
committed
Allow large numbers to be entered (reverted to line edits)
Saved ui in qt4.2.x git-svn-id: http://svn.osgeo.org/qgis/trunk@8120 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 438f277 commit 542339e

File tree

2 files changed

+193
-157
lines changed

2 files changed

+193
-157
lines changed

src/plugins/grid_maker/plugingui.cpp

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ void QgsGridMakerPluginGui::on_buttonBox_accepted()
3939
//
4040
QgsLogger::debug("GrativuleCreator called with: " +
4141
leOutputShapeFile->text() + " " +
42-
spindblXInterval->text() + " " +
43-
spindblYInterval->text() + " " +
44-
QString::number(spindblMinX->value()) + " " +
45-
QString::number(spindblMinY->value()) + " " +
46-
QString::number(spindblMaxX->value()) + " " +
47-
QString::number(spindblMaxY->value()));
42+
leXInterval->text() + " " +
43+
leYInterval->text() + " " +
44+
leXLowerLeft->text() + " " +
45+
leYLowerLeft->text() + " " +
46+
leXUpperRight->text() + " " +
47+
leYUpperRight->text());
4848

4949
if (leOutputShapeFile->text().isEmpty())
5050
{
@@ -54,36 +54,36 @@ void QgsGridMakerPluginGui::on_buttonBox_accepted()
5454
}
5555

5656

57-
double myLongitudeInterval = spindblXInterval->value();
58-
double myLatitudeInterval = spindblYInterval->value();
59-
double myLongitudeOrigin = spindblMinX->value();
60-
double myLatitudeOrigin = spindblMinY->value();
61-
double myEndPointLongitude = spindblMaxX->value();
62-
double myEndPointLatitude = spindblMaxY->value();
57+
double myXInterval = leXInterval->text().toDouble();
58+
double myYInterval = leYInterval->text().toDouble();
59+
double myXOrigin = leXLowerLeft->text().toDouble();
60+
double myYOrigin = leYLowerLeft->text().toDouble();
61+
double myEndPointX = leXUpperRight->text().toDouble();
62+
double myEndPointY = leYUpperRight->text().toDouble();
6363

6464

6565
if (radPoint->isChecked())
6666
{
6767
GraticuleCreator myGraticuleCreator ( leOutputShapeFile->text());
6868
myGraticuleCreator.generatePointGraticule(
69-
myLongitudeInterval,
70-
myLatitudeInterval,
71-
myLongitudeOrigin,
72-
myLatitudeOrigin,
73-
myEndPointLongitude,
74-
myEndPointLatitude
69+
myXInterval,
70+
myYInterval,
71+
myXOrigin,
72+
myYOrigin,
73+
myEndPointX,
74+
myEndPointY
7575
);
7676
}
7777
else
7878
{
7979
GraticuleCreator myGraticuleCreator ( leOutputShapeFile->text());
8080
myGraticuleCreator.generatePolygonGraticule(
81-
myLongitudeInterval,
82-
myLatitudeInterval,
83-
myLongitudeOrigin,
84-
myLatitudeOrigin,
85-
myEndPointLongitude,
86-
myEndPointLatitude
81+
myXInterval,
82+
myYInterval,
83+
myXOrigin,
84+
myYOrigin,
85+
myEndPointX,
86+
myEndPointY
8787
);
8888
}
8989
//

0 commit comments

Comments
 (0)