Index: ossp-pkg/as/as-gui/as_dataop.cpp RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_dataop.cpp,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_dataop.cpp,v' 2>/dev/null --- 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; Index: ossp-pkg/as/as-gui/as_tableitem.h RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_tableitem.h,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/as/as-gui/as_tableitem.h,v' | diff -u /dev/null - -L'ossp-pkg/as/as-gui/as_tableitem.h' 2>/dev/null --- ossp-pkg/as/as-gui/as_tableitem.h +++ - 2025-04-17 01:20:32.216257518 +0200 @@ -0,0 +1,14 @@ +#include +#include + + +class RtTableItem : public QTableItem +{ +public: + RtTableItem(QTable *pTable, EditType eType, const QString &Text) : QTableItem(pTable, eType, Text) {m_nOwnalign = AlignRight;}; + void setAlignment(int nAlign) {m_nOwnalign = nAlign;}; + int alignment() const {return m_nOwnalign;}; + +private: + int m_nOwnalign; +};