OSSP CVS Repository

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

ossp-pkg/as/as-gui/as_slot.cpp 1.50 -> 1.51

--- as_slot.cpp  2002/12/12 12:45:46     1.50
+++ as_slot.cpp  2002/12/12 13:20:43     1.51
@@ -518,6 +518,12 @@
 //    QRegExp Shorten("/(\\w+)$");    // For stripping prefix off the current task
 
     // Field strings to check for validity and process
+    QString Textstat(m_pMaintable->text(nRow, TITRAQ_IDXSTATUS));
+    QString Textline(m_pMaintable->text(nRow, TITRAQ_IDXLINE));
+    QString Textuser(m_pMaintable->text(nRow, TITRAQ_IDXUSER));
+    QString Textguid(m_pMaintable->text(nRow, TITRAQ_IDXGUID));
+    QString Textcrc(m_pMaintable->text(nRow, TITRAQ_IDXCRC));
+    QString Textrev(m_pMaintable->text(nRow, TITRAQ_IDXREV));
     QString Textdate(m_pMaintable->text(nRow, TITRAQ_IDXDATE));
     QString Textstart(m_pMaintable->text(nRow, TITRAQ_IDXSTART));
     QString Textfinish(m_pMaintable->text(nRow, TITRAQ_IDXFINISH));
@@ -528,18 +534,26 @@
     // Reset the edition state member
     m_pMaintable->setEdition();
 
+    if (!Textstat.isEmpty())
+        m_pStatusedit->setText(Textstat);
+    if (!Textline.isEmpty())
+        m_pLineedit->setText(Textline);
+    if (!Textuser.isEmpty())
+        m_pUseredit->setText(Textuser);
+    if (!Textguid.isEmpty())
+        m_pGuidedit->setText(Textguid);
+    if (!Textcrc.isEmpty())
+        m_pCrcedit->setText(Textcrc);
+    if (!Textrev.isEmpty())
+        m_pRevedit->setText(Textrev);
     if (!Textdate.isEmpty())
         m_pDateedit->setDate(QDate::fromString(Textdate, Qt::ISODate));
-
     if (!Textstart.isEmpty())
         m_pStarttime->setTime(QTime::fromString(Textstart, Qt::ISODate));
-
     if (!Textfinish.isEmpty())
         m_pEndtime->setTime(QTime::fromString(Textfinish, Qt::ISODate));
-
     if (!Textamount.isNull())
         m_pAmount->setText(Textamount);
-
     if (!Texttask.isNull()) { // Process task combo box to compress text length
 //        Texttask.remove(0, Shorten.search(Texttask) + 1); // Strip leading slash
         m_pTasks->setCurrentText(Texttask);
@@ -550,6 +564,54 @@
 }
 
 //
+// Update the current status column item
+//
+void Titraqform::updateStatus(const QString &Instring)
+{
+    m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXSTATUS, Instring);
+}
+
+//
+// Update the current line number column item
+//
+void Titraqform::updateLine(const QString &Instring)
+{
+    m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXLINE, Instring);
+}
+
+//
+// Update the current user column item
+//
+void Titraqform::updateUser(const QString &Instring)
+{
+    m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXUSER, Instring);
+}
+
+//
+// Update the current GUID column item
+//
+void Titraqform::updateGuid(const QString &Instring)
+{
+    m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXGUID, Instring);
+}
+
+//
+// Update the current CRC column item
+//
+void Titraqform::updateCrc(const QString &Instring)
+{
+    m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXCRC, Instring);
+}
+
+//
+// Update the current rev column item
+//
+void Titraqform::updateRev(const QString &Instring)
+{
+    m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXREV, Instring);
+}
+
+//
 // Update the current date column item
 //
 void Titraqform::updateDate(const QDate &Dateup)

CVSTrac 2.0.1