Skip to content

Commit

Permalink
new vector dialog: fix resize and prepopulate with an entry
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@15723 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Apr 16, 2011
1 parent 853582f commit b93e54e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 3 additions & 1 deletion src/app/qgsnewvectorlayerdialog.cpp
Expand Up @@ -49,8 +49,10 @@ QgsNewVectorLayerDialog::QgsNewVectorLayerDialog( QWidget *parent, Qt::WFlags fl
mFileFormatComboBox->setVisible( false );
mFileFormatLabel->setVisible( false );
}

mOkButton = buttonBox->button( QDialogButtonBox::Ok );
mOkButton->setEnabled( false );

mAttributeView->addTopLevelItem( new QTreeWidgetItem( QStringList() << "id" << "Integer" << "10" << "" ) );

QgsCoordinateReferenceSystem srs;
srs.validate();
Expand Down
9 changes: 1 addition & 8 deletions src/ui/qgsnewvectorlayerdialogbase.ui
Expand Up @@ -123,14 +123,7 @@
</widget>
</item>
<item row="2" column="4">
<widget class="QLineEdit" name="mPrecision">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
<widget class="QLineEdit" name="mPrecision"/>
</item>
</layout>
</widget>
Expand Down

0 comments on commit b93e54e

Please sign in to comment.