OSSP CVS Repository

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

ossp-pkg/as/as-gui/as_dataop.cpp 1.45 -> 1.46

--- as_dataop.cpp        2003/02/06 15:27:39     1.45
+++ as_dataop.cpp        2003/02/11 14:19:57     1.46
@@ -262,7 +262,9 @@
         if (!Account.isEmpty()) {
             QTableItem *pOld = m_pMaintable->item(nIter, TITRAQ_IDXTASK);
             delete(pOld);   // Get rid of the old before going with the new
-            m_pMaintable->setItem(nIter, TITRAQ_IDXTASK, new RtTableItem(m_pMaintable, QTableItem::WhenCurrent, Account));
+            RtTableItem *pSwapitem = new RtTableItem(m_pMaintable, QTableItem::WhenCurrent, Account);
+            pSwapitem->setAlignment(AlignLeft | AlignVCenter);
+            m_pMaintable->setItem(nIter, TITRAQ_IDXTASK, pSwapitem);
         }
         else
             bValid = false;
@@ -524,7 +526,9 @@
         // Change out old item and replace with new task data
         pItem = m_pMaintable->item(nCurrentrow + nIter, TITRAQ_IDXTASK);
         delete(pItem);  // Get rid of the old before going with the new
-        m_pMaintable->setItem(nCurrentrow + nIter, TITRAQ_IDXTASK, new RtTableItem(m_pMaintable, QTableItem::WhenCurrent, Task));
+        RtTableItem *pSwapitem = new RtTableItem(m_pMaintable, QTableItem::WhenCurrent, Task);
+        pSwapitem->setAlignment(AlignLeft | AlignVCenter);
+        m_pMaintable->setItem(nCurrentrow + nIter, TITRAQ_IDXTASK, pSwapitem);
 
         // Continue with field processing business as usual
         m_pMaintable->setText(nCurrentrow + nIter, TITRAQ_IDXREMARK, Remark.simplifyWhiteSpace());

CVSTrac 2.0.1