Skip to content
Permalink
Browse files
bug fix for #130, show default values of databases
git-svn-id: http://svn.osgeo.org/qgis/trunk@8435 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed May 14, 2008
1 parent c64a89c commit 7af5433f23d9fd6e43f631e4ab47ad3e1b4a0258
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/app/qgsattributedialog.cpp
@@ -44,10 +44,6 @@ QgsAttributeDialog::QgsAttributeDialog(const QgsFieldMap& fields, const QgsAttri
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 @@ QgsAttributeDialog::QgsAttributeDialog(const QgsFieldMap& fields, const QgsAttri
le->setValidator( new QDoubleValidator(le) );
}

le->setText((*it).toString());

mTable->setCellWidget(index, 1, le);

++index;

0 comments on commit 7af5433

Please sign in to comment.