Skip to content
Permalink
Browse files

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
  • Loading branch information
jef
jef committed Nov 7, 2009
1 parent 35ec241 commit 81ab4102778ae7b92f5bc19a94b847404ab9159b
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app/qgsnewvectorlayerdialog.cpp
@@ -32,6 +32,9 @@ QgsNewVectorLayerDialog::QgsNewVectorLayerDialog( QWidget *parent, Qt::WFlags fl
mTypeBox->addItem( tr( "Whole number" ), "Integer" );
mTypeBox->addItem( tr( "Decimal number" ), "Real" );

mWidth->setValidator( new QIntValidator( 1, 255, this ) );
mPrecision->setValidator( new QIntValidator( 0, 20, this ) );

mPointRadioButton->setChecked( true );
mFileFormatComboBox->addItem( tr( "ESRI Shapefile" ), "ESRI Shapefile" );
/* Disabled until provider properly supports editing the created file formats */

0 comments on commit 81ab410

Please sign in to comment.
You can’t perform that action at this time.