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