Skip to content

Commit b93e54e

Browse files
author
jef
committedApr 16, 2011
new vector dialog: fix resize and prepopulate with an entry
git-svn-id: http://svn.osgeo.org/qgis/trunk@15723 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 853582f commit b93e54e

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed
 

‎src/app/qgsnewvectorlayerdialog.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ QgsNewVectorLayerDialog::QgsNewVectorLayerDialog( QWidget *parent, Qt::WFlags fl
4949
mFileFormatComboBox->setVisible( false );
5050
mFileFormatLabel->setVisible( false );
5151
}
52+
5253
mOkButton = buttonBox->button( QDialogButtonBox::Ok );
53-
mOkButton->setEnabled( false );
54+
55+
mAttributeView->addTopLevelItem( new QTreeWidgetItem( QStringList() << "id" << "Integer" << "10" << "" ) );
5456

5557
QgsCoordinateReferenceSystem srs;
5658
srs.validate();

‎src/ui/qgsnewvectorlayerdialogbase.ui

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,7 @@
123123
</widget>
124124
</item>
125125
<item row="2" column="4">
126-
<widget class="QLineEdit" name="mPrecision">
127-
<property name="sizePolicy">
128-
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
129-
<horstretch>0</horstretch>
130-
<verstretch>0</verstretch>
131-
</sizepolicy>
132-
</property>
133-
</widget>
126+
<widget class="QLineEdit" name="mPrecision"/>
134127
</item>
135128
</layout>
136129
</widget>

0 commit comments

Comments
 (0)
Please sign in to comment.