--- as_slot.cpp 2002/11/26 22:22:53 1.22
+++ as_slot.cpp 2002/11/26 23:26:07 1.23
@@ -192,8 +192,8 @@
// Field strings to check for validity and process
QString Textdate(m_pMaintable->text(nRow, TITRAQ_IDXDATE));
- QString Textstart(m_pMaintable->text(nRow, TITRAQ_IDXAMOUNT));
- QString Textfinish(m_pMaintable->text(nRow, TITRAQ_IDXAMOUNT));
+ QString Textstart(m_pMaintable->text(nRow, TITRAQ_IDXSTART));
+ QString Textfinish(m_pMaintable->text(nRow, TITRAQ_IDXFINISH));
QString Textamount(m_pMaintable->text(nRow, TITRAQ_IDXAMOUNT));
QString Texttask(m_pMaintable->text(nRow, TITRAQ_IDXTASK));
QString Textremark(m_pMaintable->text(nRow, TITRAQ_IDXREMARK));
@@ -227,6 +227,13 @@
//
void Titraqform::confirmEdit(void)
{
+ // 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());
+ m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXREMARK, m_pRemark->text());
}
//
|