[QGIS Commit] r8436 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed May 14 16:59:05 EDT 2008


Author: jef
Date: 2008-05-14 16:59:04 -0400 (Wed, 14 May 2008)
New Revision: 8436

Modified:
   trunk/qgis/src/app/qgsattributedialog.cpp
Log:
final(?) fix for #130


Modified: trunk/qgis/src/app/qgsattributedialog.cpp
===================================================================
--- trunk/qgis/src/app/qgsattributedialog.cpp	2008-05-14 20:08:24 UTC (rev 8435)
+++ trunk/qgis/src/app/qgsattributedialog.cpp	2008-05-14 20:59:04 UTC (rev 8436)
@@ -44,6 +44,12 @@
       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 @@
         le->setValidator( new QDoubleValidator(le) );
       }
 
+#if QT_VERSION < 0x040400
       le->setText((*it).toString());
+#endif
 
       mTable->setCellWidget(index, 1, le);
 



More information about the QGIS-commit mailing list