Skip to content

Commit 7c6bbfa

Browse files
author
jef
committed
final(?) fix for #130
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8436 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 13b7c82 commit 7c6bbfa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/app/qgsattributedialog.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ QgsAttributeDialog::QgsAttributeDialog(const QgsFieldMap& fields, const QgsAttri
4444
myFieldItem->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
4545
mTable->setItem(index, 0, myFieldItem);
4646

47+
#if QT_VERSION >= 0x040400
48+
// set attribute value
49+
QTableWidgetItem * myValueItem = new QTableWidgetItem((*it).toString());
50+
mTable->setItem(index, 1, myValueItem);
51+
#endif
52+
4753
QLineEdit *le = new QLineEdit();
4854

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

66+
#if QT_VERSION < 0x040400
6067
le->setText((*it).toString());
68+
#endif
6169

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

0 commit comments

Comments
 (0)