Skip to content
Permalink
Browse files
final(?) fix for #130
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8436 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed May 14, 2008
1 parent 13b7c82 commit 7c6bbfad03b6e1a0746c079af08a9e4eb255c091
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/app/qgsattributedialog.cpp
@@ -44,6 +44,12 @@ QgsAttributeDialog::QgsAttributeDialog(const QgsFieldMap& fields, const QgsAttri
myFieldItem->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
mTable->setItem(index, 0, myFieldItem);

#if QT_VERSION >= 0x040400
// set attribute value
QTableWidgetItem * myValueItem = new QTableWidgetItem((*it).toString());
mTable->setItem(index, 1, myValueItem);
#endif

QLineEdit *le = new QLineEdit();

le->setFrame(false);
@@ -57,7 +63,9 @@ QgsAttributeDialog::QgsAttributeDialog(const QgsFieldMap& fields, const QgsAttri
le->setValidator( new QDoubleValidator(le) );
}

#if QT_VERSION < 0x040400
le->setText((*it).toString());
#endif

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

0 comments on commit 7c6bbfa

Please sign in to comment.