Skip to content

Commit 73066cf

Browse files
committedJul 20, 2011
[BACKPORT] fix #3974
1 parent 6c26773 commit 73066cf

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed
 

‎src/providers/wms/qgswmssourceselect.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
#include "../providers/wms/qgswmsprovider.h"
2222
#include "qgis.h" // GEO_EPSG_CRS_ID
23-
//#include "qgisapp.h" //for getThemeIcon
2423
#include "qgscontexthelp.h"
2524
#include "qgscoordinatereferencesystem.h"
2625
#include "qgsgenericprojectionselector.h"
@@ -48,6 +47,7 @@
4847
#include <QPicture>
4948
#include <QSettings>
5049
#include <QUrl>
50+
#include <QValidator>
5151

5252
#include <QNetworkRequest>
5353
#include <QNetworkReply>
@@ -69,6 +69,9 @@ QgsWMSSourceSelect::QgsWMSSourceSelect( QWidget * parent, Qt::WFlags fl, bool ma
6969
mAddButton->setToolTip( tr( "Add selected layers to map" ) );
7070
mAddButton->setEnabled( false );
7171

72+
mTileWidth->setValidator( new QIntValidator( 0, 9999, this ) );
73+
mTileHeight->setValidator( new QIntValidator( 0, 9999, this ) );
74+
7275
mImageFormatGroup = new QButtonGroup;
7376

7477
if ( !mManagerMode )

‎src/ui/qgswmssourceselectbase.ui

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,6 @@
242242
</item>
243243
<item row="1" column="1">
244244
<widget class="QLineEdit" name="mTileWidth">
245-
<property name="inputMask">
246-
<string>9999; </string>
247-
</property>
248245
</widget>
249246
</item>
250247
<item row="1" column="0">
@@ -256,9 +253,6 @@
256253
</item>
257254
<item row="1" column="2">
258255
<widget class="QLineEdit" name="mTileHeight">
259-
<property name="inputMask">
260-
<string>9999; </string>
261-
</property>
262256
</widget>
263257
</item>
264258
</layout>

0 commit comments

Comments
 (0)
Please sign in to comment.