--- 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());
|