Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
final(?) fix for #130
git-svn-id: http://svn.osgeo.org/qgis/trunk@8436 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed May 14, 2008
1 parent 7af5433 commit e6b0e02
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/qgsattributedialog.cpp
Expand Up @@ -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);
Expand All @@ -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);

Expand Down

0 comments on commit e6b0e02

Please sign in to comment.