summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/transaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/widgets/transaction.cpp')
-rw-r--r--kmymoney2/widgets/transaction.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kmymoney2/widgets/transaction.cpp b/kmymoney2/widgets/transaction.cpp
index 3a077d7..dc5e5a2 100644
--- a/kmymoney2/widgets/transaction.cpp
+++ b/kmymoney2/widgets/transaction.cpp
@@ -661,8 +661,8 @@ bool Transaction::maybeTip(const TQPoint& cpos, int row, int col, TQRect& r, TQS
// qDebug("r is %d,%d,%d,%d", r.x(), r.y(), r.width(), r.height());
r.setBottomLeft(TQPoint(r.x() + (r.width() - h), r.y() + h));
// qDebug("r is %d,%d,%d,%d", r.x(), r.y(), r.width(), r.height());
- // qDebug("p is in r = %d", r.tqcontains(cpos));
- if(r.tqcontains(cpos) && m_erronous) {
+ // qDebug("p is in r = %d", r.contains(cpos));
+ if(r.contains(cpos) && m_erronous) {
if(m_transaction.splits().count() < 2) {
msg = TQString("<qt>%1</qt>").tqarg(i18n("Transaction is missing a category assignment."));
} else {
@@ -674,7 +674,7 @@ bool Transaction::maybeTip(const TQPoint& cpos, int row, int col, TQRect& r, TQS
// check for detail column in row 1 of the transaction for a possible exclamation mark
r = m_parent->cellGeometry(m_startRow + 1, col);
- if(row == 1 && r.tqcontains(cpos) && m_transaction.splitCount() > 2) {
+ if(row == 1 && r.contains(cpos) && m_transaction.splitCount() > 2) {
MyMoneyFile* file = MyMoneyFile::instance();
TQValueList<MyMoneySplit>::const_iterator it_s;
TQString txt;
@@ -729,9 +729,9 @@ void Transaction::singleLineMemo(TQString& txt, const MyMoneySplit& split) const
{
txt = split.memo();
// remove empty lines
- txt.tqreplace("\n\n", "\n");
- // tqreplace '\n' with ", "
- txt.tqreplace('\n', ", ");
+ txt.replace("\n\n", "\n");
+ // replace '\n' with ", "
+ txt.replace('\n', ", ");
}
int Transaction::rowHeightHint(void) const
@@ -747,34 +747,34 @@ bool Transaction::matches(const TQString& txt) const
MyMoneyFile* file = MyMoneyFile::instance();
TQString s(txt);
- s.tqreplace(MyMoneyMoney::thousandSeparator(), TQString());
+ s.replace(MyMoneyMoney::thousandSeparator(), TQString());
const TQValueList<MyMoneySplit>&list = m_transaction.splits();
TQValueList<MyMoneySplit>::const_iterator it_s;
for(it_s = list.begin(); it_s != list.end(); ++it_s) {
// check if the text is contained in one of the fields
// memo, number, payee, account
- if((*it_s).memo().tqcontains(txt, false)
- || (*it_s).number().tqcontains(txt, false))
+ if((*it_s).memo().contains(txt, false)
+ || (*it_s).number().contains(txt, false))
return true;
if(!(*it_s).payeeId().isEmpty()) {
const MyMoneyPayee& payee = file->payee((*it_s).payeeId());
- if(payee.name().tqcontains(txt, false))
+ if(payee.name().contains(txt, false))
return true;
}
const MyMoneyAccount& acc = file->account((*it_s).accountId());
- if(acc.name().tqcontains(txt, false))
+ if(acc.name().contains(txt, false))
return true;
if(!s.isEmpty()) {
// check if any of the value field matches if a value has been entered
TQString r = (*it_s).value().formatMoney(m_account.fraction(), false);
- if(r.tqcontains(s, false))
+ if(r.contains(s, false))
return true;
const MyMoneyAccount& acc = file->account((*it_s).accountId());
r = (*it_s).shares().formatMoney(acc.fraction(), false);
- if(r.tqcontains(s, false))
+ if(r.contains(s, false))
return true;
}
}