diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:31:01 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:31:01 -0600 |
commit | 252fce5a2a5384702fbcc1c9987284d7bd2e6943 (patch) | |
tree | d5768ff1e9065f29bec60c94d31880b38b4e82f2 /kmymoney2/mymoney/mymoneytransaction.cpp | |
parent | 69ef6c4beaa37474a2170d0bfe842de647f53102 (diff) | |
download | kmymoney-252fce5a2a5384702fbcc1c9987284d7bd2e6943.tar.gz kmymoney-252fce5a2a5384702fbcc1c9987284d7bd2e6943.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kmymoney2/mymoney/mymoneytransaction.cpp')
-rw-r--r-- | kmymoney2/mymoney/mymoneytransaction.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kmymoney2/mymoney/mymoneytransaction.cpp b/kmymoney2/mymoney/mymoneytransaction.cpp index 79f4fd9..a46bb79 100644 --- a/kmymoney2/mymoney/mymoneytransaction.cpp +++ b/kmymoney2/mymoney/mymoneytransaction.cpp @@ -39,7 +39,7 @@ MyMoneyTransaction::MyMoneyTransaction(const TQString id, const MyMoneyTransacti *this = transaction; m_id = id; if(m_entryDate == TQDate()) - m_entryDate = TQDate::tqcurrentDate(); + m_entryDate = TQDate::currentDate(); TQValueList<MyMoneySplit>::Iterator it; for(it = m_splits.begin(); it != m_splits.end(); ++it) { @@ -188,7 +188,7 @@ void MyMoneyTransaction::modifySplit(MyMoneySplit& split) return; } } - throw new MYMONEYEXCEPTION(TQString("Invalid split id '%1'").tqarg(split.id())); + throw new MYMONEYEXCEPTION(TQString("Invalid split id '%1'").arg(split.id())); } void MyMoneyTransaction::removeSplit(const MyMoneySplit& split) @@ -202,7 +202,7 @@ void MyMoneyTransaction::removeSplit(const MyMoneySplit& split) } } if(it == m_splits.end()) - throw new MYMONEYEXCEPTION(TQString("Invalid split id '%1'").tqarg(split.id())); + throw new MYMONEYEXCEPTION(TQString("Invalid split id '%1'").arg(split.id())); } void MyMoneyTransaction::removeSplits(void) @@ -219,7 +219,7 @@ const MyMoneySplit& MyMoneyTransaction::splitByPayee(const TQString& payeeId) co if((*it).payeeId() == payeeId) return *it; } - throw new MYMONEYEXCEPTION(TQString("Split not found for payee '%1'").tqarg(TQString(payeeId))); + throw new MYMONEYEXCEPTION(TQString("Split not found for payee '%1'").arg(TQString(payeeId))); } const MyMoneySplit& MyMoneyTransaction::splitByAccount(const TQString& accountId, const bool match) const @@ -232,7 +232,7 @@ const MyMoneySplit& MyMoneyTransaction::splitByAccount(const TQString& accountId if(match == false && (*it).accountId() != accountId) return *it; } - throw new MYMONEYEXCEPTION(TQString("Split not found for account %1%2").tqarg(match?"":"!").tqarg(TQString(accountId))); + throw new MYMONEYEXCEPTION(TQString("Split not found for account %1%2").arg(match?"":"!").arg(TQString(accountId))); } const MyMoneySplit& MyMoneyTransaction::splitByAccount(const TQStringList& accountIds, const bool match) const @@ -245,7 +245,7 @@ const MyMoneySplit& MyMoneyTransaction::splitByAccount(const TQStringList& accou if(match == false && !accountIds.contains((*it).accountId())) return *it; } - throw new MYMONEYEXCEPTION(TQString("Split not found for account %1%1...%2").tqarg(match?"":"!").tqarg(accountIds.front(),accountIds.back())); + throw new MYMONEYEXCEPTION(TQString("Split not found for account %1%1...%2").arg(match?"":"!").arg(accountIds.front(),accountIds.back())); } const MyMoneySplit& MyMoneyTransaction::splitById(const TQString& splitId) const @@ -256,7 +256,7 @@ const MyMoneySplit& MyMoneyTransaction::splitById(const TQString& splitId) const if((*it).id() == splitId) return *it; } - throw new MYMONEYEXCEPTION(TQString("Split not found for id '%1'").tqarg(TQString(splitId))); + throw new MYMONEYEXCEPTION(TQString("Split not found for id '%1'").arg(TQString(splitId))); } const TQString MyMoneyTransaction::nextSplitID() @@ -334,7 +334,7 @@ unsigned long MyMoneyTransaction::hash(const TQString& txt, unsigned long h) unsigned long g; for(unsigned i=0; i < txt.length(); ++i) { - unsigned short uc = txt[i].tqunicode(); + unsigned short uc = txt[i].unicode(); for(unsigned j = 0; j < 2; ++j) { unsigned char c = uc & 0xff; // if either the cell or the row of the Unicode char is 0, stop processing @@ -467,7 +467,7 @@ TQString MyMoneyTransaction::accountSignature(bool includeSplitCount) const rc += "-"; rc += it_a.key(); if(includeSplitCount) - rc += TQString("*%1").tqarg(*it_a); + rc += TQString("*%1").arg(*it_a); } return rc; } |