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);
+ }
+}
|
|