OSSP CVS Repository

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

ossp-pkg/as/as-gui/as_dataop.cpp 1.2 -> 1.3

--- as_dataop.cpp        2002/11/22 19:42:25     1.2
+++ as_dataop.cpp        2002/11/22 19:49:19     1.3
@@ -2,7 +2,7 @@
 
 #include "titraq.h"     // Main classes
 #include "titrex.h"     // Exception classes
-
+#include "titabitem.h"  // For class RtTableItem
 
 //
 // Convenience method to load accounting data from a file
@@ -52,10 +52,7 @@
         Asline >> Account;  // Copy to the bit bucket
         Asline >> Account;  // Copy the account field
         if (Account != NULL) {
-            QRegExp Shorten("/(\\w+)$");
-            Account = QRegExp::escape(Account);
-            Account.remove(0, Shorten.search(Account));
-            m_pMaintable->setText(i, 4, Shorten.cap(Shorten.numCaptures()));
+            m_pMaintable->setItem(i, 4, new RtTableItem(m_pMaintable, QTableItem::WhenCurrent, Account));
         }
         else
             bValid = false;

CVSTrac 2.0.1