OSSP CVS Repository

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

ossp-pkg/as/as-gui/as_slot.cpp 1.35 -> 1.36

--- as_slot.cpp  2002/12/04 18:56:59     1.35
+++ as_slot.cpp  2002/12/04 20:30:54     1.36
@@ -378,6 +378,11 @@
 //
 void Titraqform::updateTask(const QString &Taskup)
 {
+//    // FIXME: Broken
+//    RtTableItem *pTask = NULL;
+//    pTask = static_cast<RtTableItem *>(m_pMaintable->item(m_pMaintable->currentRow(), TITRAQ_IDXTASK));
+//    pTask->setText(Taskup);
+
     m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXTASK, Taskup);
 }
 
@@ -394,12 +399,18 @@
 //
 void Titraqform::confirmEdit(void)
 {
+    RtTableItem *pTask = NULL;  // Task item is a derived class
+
     // Conversions from edit control data formats to native tabular format
     m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXDATE, m_pDateedit->date().toString(Qt::ISODate));
     m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXSTART, m_pStarttime->time().toString(Qt::ISODate));
     m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXFINISH, m_pEndtime->time().toString(Qt::ISODate));
     m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXAMOUNT, m_pAmount->text());
-    m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXTASK, m_pTasks->currentText());
+
+    // Specially handle task fields
+    pTask = static_cast<RtTableItem *>(m_pMaintable->item(m_pMaintable->currentRow(), TITRAQ_IDXTASK));
+    pTask->setText(m_pTasks->currentText());
+
     m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXREMARK, m_pRemark->text());
 }
 

CVSTrac 2.0.1