OSSP CVS Repository

ossp - Difference in ossp-pkg/as/as-gui/as_table.cpp versions 1.8 and 1.9
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/as/as-gui/as_table.cpp 1.8 -> 1.9

--- as_table.cpp 2002/12/10 12:06:56     1.8
+++ as_table.cpp 2002/12/12 16:20:15     1.9
@@ -67,3 +67,17 @@
     else                    // Default behaviour is to pass the event onwards
         return QTable::eventFilter(pObject, pEvent);
 }
+
+// Overridden member hack to allow externally connected control
+// widgets to influence dirty or clean state of table data
+void TiTable::setText(int nRow, int nCol, const QString &nText)
+{
+    if (this->numRows() > 0) {
+        // If a cell was edited, emit a signal indicating so
+        // We can't rely on valueChanged for unknown reasons
+        if (nText != this->text(nRow, nCol))
+            emit textEdited();
+
+        QTable::setText(nRow, nCol, nText);
+    }
+}

CVSTrac 2.0.1