OSSP CVS Repository

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

ossp-pkg/as/as-gui/as_slot.cpp 1.17 -> 1.18

--- as_slot.cpp  2002/11/26 19:09:58     1.17
+++ as_slot.cpp  2002/11/26 19:33:37     1.18
@@ -45,10 +45,6 @@
 //
 void Titraqform::addEntry(void)
 {
-//    // Add a row to end of table and focuses to it
-//    m_pMaintable->setNumRows(m_pMaintable->numRows() + 1);
-//    m_pMaintable->setCurrentCell(m_pMaintable->numRows(), 0);
-
     // Add a row after selection and focus to the new row
     if (m_pMaintable->currentRow() + 1 != m_pMaintable->numRows()) {
         m_pMaintable->insertRows(m_pMaintable->currentRow());
@@ -212,22 +208,26 @@
 
     if (!Textdate.isEmpty())
         m_pDateedit->setDate(QDate::fromString(Textdate, Qt::ISODate));
+    else
+        m_pDateedit->setDate(QDate::currentDate());
 
     if (!Textstart.isEmpty())
         m_pStarttime->setTime(QTime::fromString(Textstart, Qt::ISODate));
+    else
+        m_pStarttime->setTime(QTime::QTime(0, 0));
 
     if (!Textfinish.isEmpty())
         m_pEndtime->setTime(QTime::fromString(Textfinish, Qt::ISODate));
+    else
+        m_pEndtime->setTime(QTime::QTime(0, 0));
 
-    if (!Textamount.isEmpty())
-        m_pAmount->setText(Textamount);
+    m_pAmount->setText(Textamount);
 
     // Process the task combo box to compress text length
-    Texttask.remove(0, Shorten.search(Texttask) + 1);   // Strip leading slash
+    Texttask.remove(0, Shorten.search(Texttask) + 1); // Strip leading slash
     m_pTasks->setCurrentText(Texttask);
 
-    if (!Textremark.isEmpty())
-        m_pRemark->setText(Textremark);
+    m_pRemark->setText(Textremark);
 }
 
 //

CVSTrac 2.0.1