Skip to content

Commit 81ab410

Browse files
author
jef
committed
add numeric validator field width and precision in new vector dialog
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11990 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 35ec241 commit 81ab410

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/qgsnewvectorlayerdialog.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ QgsNewVectorLayerDialog::QgsNewVectorLayerDialog( QWidget *parent, Qt::WFlags fl
3232
mTypeBox->addItem( tr( "Whole number" ), "Integer" );
3333
mTypeBox->addItem( tr( "Decimal number" ), "Real" );
3434

35+
mWidth->setValidator( new QIntValidator( 1, 255, this ) );
36+
mPrecision->setValidator( new QIntValidator( 0, 20, this ) );
37+
3538
mPointRadioButton->setChecked( true );
3639
mFileFormatComboBox->addItem( tr( "ESRI Shapefile" ), "ESRI Shapefile" );
3740
/* Disabled until provider properly supports editing the created file formats */

0 commit comments

Comments
 (0)