OSSP CVS Repository

ossp - Check-in [4685]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4685
Date: 2004-Aug-24 23:42:16 (local)
2004-Aug-24 21:42:16 (UTC)
User:ms
Branch:
Comment: Replace read only attribute reset to endEdit() to fix in place edition bug (causing in place edition to totally fail).
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/as_slot.cpp      1.144 -> 1.145     6 inserted, 1 deleted

ossp-pkg/as/as-gui/as_slot.cpp 1.144 -> 1.145

--- as_slot.cpp  2004/08/20 17:47:07     1.144
+++ as_slot.cpp  2004/08/24 21:42:16     1.145
@@ -682,10 +682,15 @@
 //
 void Titraqform::inplaceEdit(int nRow, int nCol, int nButton, const QPoint &Mousepos)
 {
+    // Table read only attribute must be reset here, so that editing can take
+    // place. Otherwise calls to editCell are ignored (for obvious reasons).
     m_pMaintable->setReadOnly(false);
+
+    // After editCell() is called, beginEdit() and endEdit() execute. The read
+    // only attribute is reset in endEdit() to return everything to normal.
     m_pMaintable->editCell(nRow, nCol);
+
     m_pMaintable->setEdition(nCol);
-    m_pMaintable->setReadOnly(true);
 }
 
 //

CVSTrac 2.0.1