[QGIS Commit] r8435 - trunk/qgis/src/app
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Wed May 14 16:08:24 EDT 2008
Author: mhugent
Date: 2008-05-14 16:08:24 -0400 (Wed, 14 May 2008)
New Revision: 8435
Modified:
trunk/qgis/src/app/qgsattributedialog.cpp
Log:
bug fix for #130, show default values of databases
Modified: trunk/qgis/src/app/qgsattributedialog.cpp
===================================================================
--- trunk/qgis/src/app/qgsattributedialog.cpp 2008-05-14 18:15:40 UTC (rev 8434)
+++ trunk/qgis/src/app/qgsattributedialog.cpp 2008-05-14 20:08:24 UTC (rev 8435)
@@ -44,10 +44,6 @@
myFieldItem->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
mTable->setItem(index, 0, myFieldItem);
- // set attribute value
- QTableWidgetItem * myValueItem = new QTableWidgetItem((*it).toString());
- mTable->setItem(index, 1, myValueItem);
-
QLineEdit *le = new QLineEdit();
le->setFrame(false);
@@ -61,6 +57,8 @@
le->setValidator( new QDoubleValidator(le) );
}
+ le->setText((*it).toString());
+
mTable->setCellWidget(index, 1, le);
++index;
More information about the QGIS-commit
mailing list