Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bug fix for #130, show default values of databases
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8435 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed May 14, 2008
1 parent 99275bb commit 13b7c82
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/app/qgsattributedialog.cpp
Expand Up @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit 13b7c82

Please sign in to comment.