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.cpp580
1 files changed, 290 insertions, 290 deletions
diff --git a/kmymoney2/widgets/transaction.cpp b/kmymoney2/widgets/transaction.cpp
index 4c8a23b..b45abd2 100644
--- a/kmymoney2/widgets/transaction.cpp
+++ b/kmymoney2/widgets/transaction.cpp
@@ -18,9 +18,9 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qstring.h>
-#include <qpainter.h>
-#include <qwidgetlist.h>
+#include <tqstring.h>
+#include <tqpainter.h>
+#include <tqwidgetlist.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -135,8 +135,8 @@ static unsigned char attentionSign[] = {
0x42,0x60,0x82
};
-Transaction::Transaction(Register *parent, const MyMoneyTransaction& transaction, const MyMoneySplit& split, int uniqueId) :
- RegisterItem(parent),
+Transaction::Transaction(Register *tqparent, const MyMoneyTransaction& transaction, const MyMoneySplit& split, int uniqueId) :
+ RegisterItem(tqparent),
m_transaction(transaction),
m_split(split),
m_form(0),
@@ -160,7 +160,7 @@ Transaction::Transaction(Register *parent, const MyMoneyTransaction& transaction
if(!m_split.payeeId().isEmpty()) {
m_payee = file->payee(m_split.payeeId()).name();
}
- if(parent->account().isIncomeExpense()) {
+ if(tqparent->account().isIncomeExpense()) {
m_payeeHeader = m_split.shares().isNegative() ? i18n("From") : i18n("Pay to");
} else {
m_payeeHeader = m_split.shares().isNegative() ? i18n("Pay to") : i18n("From");
@@ -175,7 +175,7 @@ Transaction::Transaction(Register *parent, const MyMoneyTransaction& transaction
if(!m_uniqueId.isEmpty()) {
m_uniqueId += "-";
- QString id;
+ TQString id;
id.setNum(uniqueId);
m_uniqueId += id.rightJustify(3, '0');
}
@@ -199,16 +199,16 @@ void Transaction::setFocus(bool focus, bool updateLens)
}
}
-void Transaction::markAttachment(QPainter* painter, int /* row */, int /* col */, const QRect& r)
+void Transaction::markAttachment(TQPainter* painter, int /* row */, int /* col */, const TQRect& r)
{
- static QPixmap clip;
+ static TQPixmap clip;
const int m = 2; // margin
int h = m_parent->rowHeightHint() - (2*m);
int lx = r.topRight().x() - h;
if(isErronous())
lx -= h;
- QRect cr(QPoint(lx - m, m), QSize(h, h));
+ TQRect cr(TQPoint(lx - m, m), TQSize(h, h));
painter->save();
if(clip.isNull()) {
@@ -218,37 +218,37 @@ void Transaction::markAttachment(QPainter* painter, int /* row */, int /* col */
}
}
- painter->drawPixmap(QPoint(lx - m, m + (h - clip.height())/2 ), clip);
+ painter->drawPixmap(TQPoint(lx - m, m + (h - clip.height())/2 ), clip);
painter->restore();
}
-void Transaction::markAsErronous(QPainter* painter, int /* row */, int /* col */, const QRect& r)
+void Transaction::markAsErronous(TQPainter* painter, int /* row */, int /* col */, const TQRect& r)
{
const int m = 2; // margin
int h = m_parent->rowHeightHint() - (2*m);
- QRect cr(QPoint(r.topRight().x() - h - m, m), QSize(h, h));
+ TQRect cr(TQPoint(r.topRight().x() - h - m, m), TQSize(h, h));
painter->save();
- QPixmap attention;
+ TQPixmap attention;
attention.loadFromData(attentionSign, sizeof(attentionSign), 0, 0);
if(attention.height() > h) {
attention.resize(h, h);
}
- painter->drawPixmap(QPoint(r.topRight().x() - h - m, m + (h - attention.height())/2 ), attention);
+ painter->drawPixmap(TQPoint(r.topRight().x() - h - m, m + (h - attention.height())/2 ), attention);
painter->restore();
}
-bool Transaction::paintRegisterCellSetup(QPainter* painter, int& row, int& col, QRect& cellRect, QRect& textRect, QColorGroup& cg, QBrush& brush)
+bool Transaction::paintRegisterCellSetup(TQPainter* painter, int& row, int& col, TQRect& cellRect, TQRect& textRect, TQColorGroup& cg, TQBrush& brush)
{
if(m_reducedIntensity)
- cg = m_parent->palette().disabled();
+ cg = m_parent->tqpalette().disabled();
if(m_alternate)
- cg.setColor(QColorGroup::Base, KMyMoneyGlobalSettings::listColor());
+ cg.setColor(TQColorGroup::Base, KMyMoneyGlobalSettings::listColor());
else
- cg.setColor(QColorGroup::Base, KMyMoneyGlobalSettings::listBGColor());
+ cg.setColor(TQColorGroup::Base, KMyMoneyGlobalSettings::listBGColor());
cellRect.setX(0);
cellRect.setY(0);
@@ -260,10 +260,10 @@ bool Transaction::paintRegisterCellSetup(QPainter* painter, int& row, int& col,
textRect.setWidth(textRect.width()-4);
if(m_selected) {
- brush = QBrush(cg.highlight());
+ brush = TQBrush(cg.highlight());
painter->setPen(cg.highlightedText());
} else {
- brush = QBrush(cg.base());
+ brush = TQBrush(cg.base());
painter->setPen(cg.text());
}
@@ -283,139 +283,139 @@ bool Transaction::paintRegisterCellSetup(QPainter* painter, int& row, int& col,
return true;
}
-void Transaction::paintRegisterCellFocus(QPainter* painter, int row, int col, const QRect& r, const QColorGroup& cg)
+void Transaction::paintRegisterCellFocus(TQPainter* painter, int row, int col, const TQRect& r, const TQColorGroup& cg)
{
if(m_focus) {
- QPen oldPen = painter->pen();
- QPen newPen = oldPen;
+ TQPen oldPen = painter->pen();
+ TQPen newPen = oldPen;
newPen.setWidth(0);
painter->setFont(KMyMoneyGlobalSettings::listCellFont());
painter->setPen(newPen);
painter->setPen(cg.foreground());
- painter->setPen(Qt::DotLine);
+ painter->setPen(TQt::DotLine);
// for the first Row, we need to paint the top
- QPoint start, end;
+ TQPoint start, end;
#if 0
if(row == 0) {
- start = QPoint(r.x(), r.y() + 1);
- end = QPoint(r.x() + r.width(), r.y() + 1);
+ start = TQPoint(r.x(), r.y() + 1);
+ end = TQPoint(r.x() + r.width(), r.y() + 1);
if(col == 0) {
start.rx()++;
} else if(col == m_parent->lastCol()) {
end.rx()--;
}
// painter->drawLine(start, end);
- painter->drawWinFocusRect(QRect(start, end));
+ painter->drawWinFocusRect(TQRect(start, end));
}
// for the last Row, we need to paint the bottom
if(row == numRows() - 1) {
- start = QPoint(r.x(), r.y() + r.height() - 1);
- end = QPoint(r.x() + r.width(), r.y() + r.height() - 1);
+ start = TQPoint(r.x(), r.y() + r.height() - 1);
+ end = TQPoint(r.x() + r.width(), r.y() + r.height() - 1);
if(col == 0) {
start.rx()++;
} else if(col == m_parent->lastCol()) {
end.rx()--;
}
// painter->drawLine(start, end);
- painter->drawWinFocusRect(QRect(start, end));
+ painter->drawWinFocusRect(TQRect(start, end));
}
// for the first col, we need to paint the left
if(col == 0) {
- start = QPoint(r.x() + 1, r.y());
- end = QPoint(r.x() + 1, r.y() + r.height());
+ start = TQPoint(r.x() + 1, r.y());
+ end = TQPoint(r.x() + 1, r.y() + r.height());
if(row == 0) {
start.ry()++;
} else if(row == numRows()-1) {
end.ry()--;
}
//painter->drawLine(start, end);
- painter->drawWinFocusRect(QRect(start, end));
+ painter->drawWinFocusRect(TQRect(start, end));
}
// for the last col, we need to paint the left
if(col == m_parent->lastCol()) {
- start = QPoint(r.x() + r.width() - 1, r.y());
- end = QPoint(r.x() + r.width() - 1, r.y() + r.height());
+ start = TQPoint(r.x() + r.width() - 1, r.y());
+ end = TQPoint(r.x() + r.width() - 1, r.y() + r.height());
if(row == 0) {
start.ry()++;
} else if(row == numRows()-1) {
end.ry()--;
}
//painter->drawLine(start, end);
- painter->drawWinFocusRect(QRect(start, end));
+ painter->drawWinFocusRect(TQRect(start, end));
}
#endif
if(row == 0) {
- start = QPoint(r.x(), r.y());
- end = QPoint(r.x() + r.width(), r.y() + 1);
+ start = TQPoint(r.x(), r.y());
+ end = TQPoint(r.x() + r.width(), r.y() + 1);
if(col == 0) {
start.rx()++;
} else if(col == m_parent->lastCol()) {
end.rx()--;
}
// painter->drawLine(start, end);
- painter->drawWinFocusRect(QRect(start, end));
+ painter->drawWinFocusRect(TQRect(start, end));
}
// for the last Row, we need to paint the bottom
if(row == numRowsRegister() - 1) {
- start = QPoint(r.x(), r.y() + r.height() - 2);
- end = QPoint(r.x() + r.width(), r.y() + r.height() - 2);
+ start = TQPoint(r.x(), r.y() + r.height() - 2);
+ end = TQPoint(r.x() + r.width(), r.y() + r.height() - 2);
if(col == 0) {
start.rx()++;
} else if(col == m_parent->lastCol()) {
end.rx()--;
}
// painter->drawLine(start, end);
- painter->drawWinFocusRect(QRect(start, end));
+ painter->drawWinFocusRect(TQRect(start, end));
}
// for the first col, we need to paint the left
if(col == 0) {
- start = QPoint(r.x() + 1, r.y());
- end = QPoint(r.x() + 1, r.y() + r.height());
+ start = TQPoint(r.x() + 1, r.y());
+ end = TQPoint(r.x() + 1, r.y() + r.height());
if(row == 0) {
start.ry()++;
} else if(row == numRowsRegister()-1) {
end.ry()--;
}
//painter->drawLine(start, end);
- painter->drawWinFocusRect(QRect(start, end));
+ painter->drawWinFocusRect(TQRect(start, end));
}
// for the last col, we need to paint the left
if(col == m_parent->lastCol()) {
- start = QPoint(r.x() + r.width() - 1, r.y());
- end = QPoint(r.x() + r.width() - 1, r.y() + r.height());
+ start = TQPoint(r.x() + r.width() - 1, r.y());
+ end = TQPoint(r.x() + r.width() - 1, r.y() + r.height());
if(row == 0) {
start.ry()++;
} else if(row == numRowsRegister()-1) {
end.ry()--;
}
//painter->drawLine(start, end);
- painter->drawWinFocusRect(QRect(start, end));
+ painter->drawWinFocusRect(TQRect(start, end));
}
painter->setPen(oldPen);
}
}
-void Transaction::registerCellText(QString& txt, int row, int col)
+void Transaction::registerCellText(TQString& txt, int row, int col)
{
int align = 0;
registerCellText(txt, align, row, col, 0);
}
-void Transaction::paintRegisterCell(QPainter* painter, int row, int col, const QRect& r, bool /* selected */, const QColorGroup& _cg)
+void Transaction::paintRegisterCell(TQPainter* painter, int row, int col, const TQRect& r, bool /* selected */, const TQColorGroup& _cg)
{
- QColorGroup cg(_cg);
- QRect cellRect(r);
- QRect textRect;
- QBrush backgroundBrush;
+ TQColorGroup cg(_cg);
+ TQRect cellRect(r);
+ TQRect textRect;
+ TQBrush backgroundBrush;
painter->save();
if(paintRegisterCellSetup(painter, row, col, cellRect, textRect, cg, backgroundBrush)) {
// construct the text for the cell
- int align = Qt::AlignVCenter;
- QString txt;
+ int align = TQt::AlignVCenter;
+ TQString txt;
if(m_transaction != MyMoneyTransaction() && !m_inRegisterEdit) {
registerCellText(txt, align, row, col, painter);
}
@@ -438,11 +438,11 @@ void Transaction::paintRegisterCell(QPainter* painter, int row, int col, const Q
painter->restore();
}
-void Transaction::paintRegisterIcons(QPainter* painter, int row, int col, const QRect& /*r*/, const QColorGroup& /*cg*/)
+void Transaction::paintRegisterIcons(TQPainter* painter, int row, int col, const TQRect& /*r*/, const TQColorGroup& /*cg*/)
{
if(row == 0 && col == DetailColumn && painter) {
if(m_erronous || !m_transaction.value("kmm-attachment").isEmpty()) {
- QRect cellRect;
+ TQRect cellRect;
cellRect.setX(0);
cellRect.setY(0);
cellRect.setWidth(m_parent->columnWidth(col));
@@ -456,7 +456,7 @@ void Transaction::paintRegisterIcons(QPainter* painter, int row, int col, const
}
}
}
-void Transaction::paintRegisterCellBackground(QPainter* painter, int row, int col, const QRect& r, const QBrush& backgroundBrush)
+void Transaction::paintRegisterCellBackground(TQPainter* painter, int row, int col, const TQRect& r, const TQBrush& backgroundBrush)
{
Q_UNUSED(row);
Q_UNUSED(col);
@@ -465,7 +465,7 @@ void Transaction::paintRegisterCellBackground(QPainter* painter, int row, int co
painter->fillRect(r, backgroundBrush);
}
-void Transaction::paintRegisterGrid(QPainter* painter, int row, int col, const QRect& r, const QColorGroup& _cg) const
+void Transaction::paintRegisterGrid(TQPainter* painter, int row, int col, const TQRect& r, const TQColorGroup& _cg) const
{
Q_UNUSED(_cg);
@@ -479,7 +479,7 @@ void Transaction::paintRegisterGrid(QPainter* painter, int row, int col, const Q
}
}
-void Transaction::paintRegisterCellText(QPainter* painter, int row, int col, const QRect& r, const QColorGroup& _cg, int align, const QString& txt)
+void Transaction::paintRegisterCellText(TQPainter* painter, int row, int col, const TQRect& r, const TQColorGroup& _cg, int align, const TQString& txt)
{
Q_UNUSED(row);
Q_UNUSED(col);
@@ -508,7 +508,7 @@ int Transaction::formRowHeight(void) const
kMyMoneyDateInput dateInput;
KMyMoneyCategory category(0,0,true);
- return QMAX(dateInput.sizeHint().height(), category.sizeHint().height());
+ return TQMAX(dateInput.tqsizeHint().height(), category.tqsizeHint().height());
}
return m_formRowHeight;
}
@@ -537,14 +537,14 @@ void Transaction::setupForm(TransactionForm* form)
loadTab(form);
}
-void Transaction::paintFormCell(QPainter* painter, int row, int col, const QRect& /*r*/, bool /*selected*/, const QColorGroup& _cg)
+void Transaction::paintFormCell(TQPainter* painter, int row, int col, const TQRect& /*r*/, bool /*selected*/, const TQColorGroup& _cg)
{
if(!m_form)
return;
- QRect cellRect = m_form->cellRect(row, col);
+ TQRect cellRect = m_form->cellRect(row, col);
- QRect textRect(cellRect);
+ TQRect textRect(cellRect);
textRect.setX(1);
textRect.setY(1);
textRect.setWidth(textRect.width()-2);
@@ -553,8 +553,8 @@ void Transaction::paintFormCell(QPainter* painter, int row, int col, const QRect
painter->fillRect(cellRect, _cg.background());
painter->setPen(_cg.text());
- QString txt;
- int align = Qt::AlignVCenter;
+ TQString txt;
+ int align = TQt::AlignVCenter;
bool editField = formCellText(txt, align, row, col, painter);
// if we have an editable field and don't currently edit the transaction
@@ -572,9 +572,9 @@ void Transaction::paintFormCell(QPainter* painter, int row, int col, const QRect
}
-void Transaction::setupPalette(const QPalette& palette, QMap<QString, QWidget*>& editWidgets)
+void Transaction::setupPalette(const TQPalette& palette, TQMap<TQString, TQWidget*>& editWidgets)
{
- QMap<QString, QWidget*>::iterator it_w;
+ TQMap<TQString, TQWidget*>::iterator it_w;
for(it_w = editWidgets.begin(); it_w != editWidgets.end(); ++it_w) {
if(*it_w) {
(*it_w)->setPalette(palette);
@@ -582,36 +582,36 @@ void Transaction::setupPalette(const QPalette& palette, QMap<QString, QWidget*>&
}
}
-void Transaction::setupFormPalette(QMap<QString, QWidget*>& editWidgets)
+void Transaction::setupFormPalette(TQMap<TQString, TQWidget*>& editWidgets)
{
setupPalette(m_parent->palette(), editWidgets);
}
-void Transaction::setupRegisterPalette(QMap<QString, QWidget*>& editWidgets)
+void Transaction::setupRegisterPalette(TQMap<TQString, TQWidget*>& editWidgets)
{
// make sure, we're using the right palette
- QPalette palette = m_parent->palette();
+ TQPalette palette = m_parent->palette();
// use the highlight color as background
- palette.setColor(QPalette::Active, QColorGroup::Background, palette.color(QPalette::Active, QColorGroup::Highlight));
+ palette.setColor(TQPalette::Active, TQColorGroup::Background, palette.color(TQPalette::Active, TQColorGroup::Highlight));
setupPalette(palette, editWidgets);
}
-QWidget* Transaction::focusWidget(QWidget* w) const
+TQWidget* Transaction::tqfocusWidget(TQWidget* w) const
{
if(w) {
while(w->focusProxy())
- w = w->focusProxy();
+ w = TQT_TQWIDGET(w->focusProxy());
}
return w;
}
-void Transaction::arrangeWidget(QTable* tbl, int row, int col, QWidget* w) const
+void Transaction::arrangeWidget(TQTable* tbl, int row, int col, TQWidget* w) const
{
if(w) {
tbl->setCellWidget(row, col, w);
- // remove the widget from the QTable's eventFilter so that all
+ // remove the widget from the TQTable's eventFilter so that all
// events will be directed to the edit widget
w->removeEventFilter(tbl);
} else
@@ -646,7 +646,7 @@ bool Transaction::haveNumberField(void) const
return rc;
}
-bool Transaction::maybeTip(const QPoint& cpos, int row, int col, QRect& r, QString& msg)
+bool Transaction::maybeTip(const TQPoint& cpos, int row, int col, TQRect& r, TQString& msg)
{
if(col != DetailColumn)
return false;
@@ -659,25 +659,25 @@ bool Transaction::maybeTip(const QPoint& cpos, int row, int col, QRect& r, QStri
// check for detail column in row 0 of the transaction for a possible exclamation mark
r = m_parent->cellGeometry(m_startRow + 0, col);
// qDebug("r is %d,%d,%d,%d", r.x(), r.y(), r.width(), r.height());
- r.setBottomLeft(QPoint(r.x() + (r.width() - h), r.y() + h));
+ 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.contains(cpos));
- if(r.contains(cpos) && m_erronous) {
+ // qDebug("p is in r = %d", r.tqcontains(cpos));
+ if(r.tqcontains(cpos) && m_erronous) {
if(m_transaction.splits().count() < 2) {
- msg = QString("<qt>%1</qt>").arg(i18n("Transaction is missing a category assignment."));
+ msg = TQString("<qt>%1</qt>").tqarg(i18n("Transaction is missing a category assignment."));
} else {
const MyMoneySecurity& sec = MyMoneyFile::instance()->security(m_account.currencyId());
- msg = QString("<qt>%1</qt>").arg(i18n("The transaction has a missing assignment of <b>%1</b>.").arg(m_transaction.splitSum().abs().formatMoney(m_account, sec)));
+ msg = TQString("<qt>%1</qt>").tqarg(i18n("The transaction has a missing assignment of <b>%1</b>.").tqarg(m_transaction.splitSum().abs().formatMoney(m_account, sec)));
}
return true;
}
// 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.contains(cpos) && m_transaction.splitCount() > 2) {
+ if(row == 1 && r.tqcontains(cpos) && m_transaction.splitCount() > 2) {
MyMoneyFile* file = MyMoneyFile::instance();
- QValueList<MyMoneySplit>::const_iterator it_s;
- QString txt;
+ TQValueList<MyMoneySplit>::const_iterator it_s;
+ TQString txt;
const MyMoneySecurity& sec = file->security(m_transaction.commodity());
MyMoneyMoney factor(1, 1);
if(!m_split.value().isNegative())
@@ -687,26 +687,26 @@ bool Transaction::maybeTip(const QPoint& cpos, int row, int col, QRect& r, QStri
if(*it_s == m_split)
continue;
const MyMoneyAccount& acc = file->account((*it_s).accountId());
- QString category = file->accountToCategory(acc.id());
- QString amount = ((*it_s).value() * factor).formatMoney(acc, sec);
+ TQString category = file->accountToCategory(acc.id());
+ TQString amount = ((*it_s).value() * factor).formatMoney(acc, sec);
- txt += QString("<tr><td><nobr>%1</nobr></td><td align=right><nobr>%2</nobr></td></tr>").arg(category, amount);
+ txt += TQString("<tr><td><nobr>%1</nobr></td><td align=right><nobr>%2</nobr></td></tr>").tqarg(category, amount);
}
- msg = QString("<table>%1</table>").arg(txt);
+ msg = TQString("<table>%1</table>").tqarg(txt);
return true;
}
return false;
}
-QString Transaction::reconcileState(bool text) const
+TQString Transaction::reconcileState(bool text) const
{
- QString txt = KMyMoneyUtils::reconcileStateToString(m_split.reconcileFlag(), text);
+ TQString txt = KMyMoneyUtils::reconcileStateToString(m_split.reconcileFlag(), text);
if((text == true)
&& (txt == i18n("Unknown"))
&& (m_transaction == MyMoneyTransaction()))
- txt = QString();
+ txt = TQString();
return txt;
}
@@ -725,13 +725,13 @@ void Transaction::leaveEditMode(void)
setFocus(hasFocus(), true);
}
-void Transaction::singleLineMemo(QString& txt, const MyMoneySplit& split) const
+void Transaction::singleLineMemo(TQString& txt, const MyMoneySplit& split) const
{
txt = split.memo();
// remove empty lines
- txt.replace("\n\n", "\n");
- // replace '\n' with ", "
- txt.replace('\n', ", ");
+ txt.tqreplace("\n\n", "\n");
+ // tqreplace '\n' with ", "
+ txt.tqreplace('\n', ", ");
}
int Transaction::rowHeightHint(void) const
@@ -740,41 +740,41 @@ int Transaction::rowHeightHint(void) const
}
-bool Transaction::matches(const QString& txt) const
+bool Transaction::matches(const TQString& txt) const
{
if(txt.isEmpty() || m_transaction.splitCount() == 0)
return true;
MyMoneyFile* file = MyMoneyFile::instance();
- QString s(txt);
- s.replace(MyMoneyMoney::thousandSeparator(), QString());
+ TQString s(txt);
+ s.tqreplace(MyMoneyMoney::thousandSeparator(), TQString());
- const QValueList<MyMoneySplit>&list = m_transaction.splits();
- QValueList<MyMoneySplit>::const_iterator it_s;
+ 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().contains(txt, false)
- || (*it_s).number().contains(txt, false))
+ if((*it_s).memo().tqcontains(txt, false)
+ || (*it_s).number().tqcontains(txt, false))
return true;
if(!(*it_s).payeeId().isEmpty()) {
const MyMoneyPayee& payee = file->payee((*it_s).payeeId());
- if(payee.name().contains(txt, false))
+ if(payee.name().tqcontains(txt, false))
return true;
}
const MyMoneyAccount& acc = file->account((*it_s).accountId());
- if(acc.name().contains(txt, false))
+ if(acc.name().tqcontains(txt, false))
return true;
if(!s.isEmpty()) {
// check if any of the value field matches if a value has been entered
- QString r = (*it_s).value().formatMoney(m_account.fraction(), false);
- if(r.contains(s, false))
+ TQString r = (*it_s).value().formatMoney(m_account.fraction(), false);
+ if(r.tqcontains(s, false))
return true;
const MyMoneyAccount& acc = file->account((*it_s).accountId());
r = (*it_s).shares().formatMoney(acc.fraction(), false);
- if(r.contains(s, false))
+ if(r.tqcontains(s, false))
return true;
}
}
@@ -839,8 +839,8 @@ void Transaction::setSelected(bool selected)
m_selected = selected;
}
-StdTransaction::StdTransaction(Register *parent, const MyMoneyTransaction& transaction, const MyMoneySplit& split, int uniqueId) :
- Transaction(parent, transaction, split, uniqueId),
+StdTransaction::StdTransaction(Register *tqparent, const MyMoneyTransaction& transaction, const MyMoneySplit& split, int uniqueId) :
+ Transaction(tqparent, transaction, split, uniqueId),
m_showAccountRow(false)
{
try {
@@ -867,7 +867,7 @@ StdTransaction::StdTransaction(Register *parent, const MyMoneyTransaction& trans
if(KMyMoneyUtils::transactionType(m_transaction) == KMyMoneyUtils::InvestmentTransaction) {
MyMoneySplit split = KMyMoneyUtils::stockSplit(m_transaction);
m_payee = MyMoneyFile::instance()->account(split.accountId()).name();
- QString addon;
+ TQString addon;
if(split.action() == MyMoneySplit::ActionBuyShares) {
if(split.value().isNegative()) {
addon = i18n("Sell");
@@ -880,7 +880,7 @@ StdTransaction::StdTransaction(Register *parent, const MyMoneyTransaction& trans
addon = i18n("Yield");
}
if(!addon.isEmpty()) {
- m_payee += QString(" (%1)").arg(addon);
+ m_payee += TQString(" (%1)").tqarg(addon);
}
m_payeeHeader = i18n("Activity");
m_category = i18n("Investment transaction");
@@ -889,10 +889,10 @@ StdTransaction::StdTransaction(Register *parent, const MyMoneyTransaction& trans
// setup initial size
setNumRowsRegister(numRowsRegister(KMyMoneyGlobalSettings::showRegisterDetailed()));
- emit parent->itemAdded(this);
+ emit tqparent->itemAdded(this);
}
-void StdTransaction::setupFormHeader(const QString& id)
+void StdTransaction::setupFormHeader(const TQString& id)
{
m_category = MyMoneyFile::instance()->accountToCategory(id);
switch(MyMoneyFile::instance()->account(id).accountGroup()) {
@@ -913,7 +913,7 @@ KMyMoneyRegister::Action StdTransaction::actionType(void) const
// if at least one split is referencing an income or
// expense account, we will not call it a transfer
- QValueList<MyMoneySplit>::const_iterator it_s;
+ TQValueList<MyMoneySplit>::const_iterator it_s;
for(it_s = m_transaction.splits().begin(); it_s != m_transaction.splits().end(); ++it_s) {
if((*it_s).accountId() == m_split.accountId())
@@ -951,7 +951,7 @@ void StdTransaction::setupForm(TransactionForm* form)
{
Transaction::setupForm(form);
- QTableItem* memo = form->item(3, ValueColumn1);
+ TQTableItem* memo = form->item(3, ValueColumn1);
memo->setSpan(3, 1);
}
@@ -966,14 +966,14 @@ void StdTransaction::setShowRowInForm(int row, bool show)
m_showAccountRow = show;
}
-bool StdTransaction::formCellText(QString& txt, int& align, int row, int col, QPainter* /* painter */)
+bool StdTransaction::formCellText(TQString& txt, int& align, int row, int col, TQPainter* /* painter */)
{
// if(m_transaction != MyMoneyTransaction()) {
switch(row) {
case 0:
switch(col) {
case LabelColumn1:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
txt = i18n("Account");
break;
}
@@ -982,23 +982,23 @@ bool StdTransaction::formCellText(QString& txt, int& align, int row, int col, QP
case 1:
switch(col) {
case LabelColumn1:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
txt = m_payeeHeader;
break;
case ValueColumn1:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
txt = m_payee;
break;
case LabelColumn2:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
if(haveNumberField())
txt = i18n("Number");
break;
case ValueColumn2:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
if(haveNumberField())
txt = m_split.number();
break;
@@ -1008,12 +1008,12 @@ bool StdTransaction::formCellText(QString& txt, int& align, int row, int col, QP
case 2:
switch(col) {
case LabelColumn1:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
txt = m_categoryHeader;
break;
case ValueColumn1:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
txt = m_category;
if(m_transaction != MyMoneyTransaction()) {
if(txt.isEmpty() && !m_split.value().isZero())
@@ -1022,12 +1022,12 @@ bool StdTransaction::formCellText(QString& txt, int& align, int row, int col, QP
break;
case LabelColumn2:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
txt = i18n("Date");
break;
case ValueColumn2:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
if(m_transaction != MyMoneyTransaction())
txt = KGlobal::locale()->formatDate(m_transaction.postDate(), true);
break;
@@ -1037,25 +1037,25 @@ bool StdTransaction::formCellText(QString& txt, int& align, int row, int col, QP
case 3:
switch(col) {
case LabelColumn1:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
txt = i18n("Memo");
break;
case ValueColumn1:
- align &= ~Qt::AlignVCenter;
- align |= Qt::AlignTop;
- align |= Qt::AlignLeft;
+ align &= ~TQt::AlignVCenter;
+ align |= TQt::AlignTop;
+ align |= TQt::AlignLeft;
if(m_transaction != MyMoneyTransaction())
txt = m_split.memo().section('\n', 0, 2);
break;
case LabelColumn2:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
txt = i18n("Amount");
break;
case ValueColumn2:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
if(m_transaction != MyMoneyTransaction()) {
txt = (m_split.value(m_transaction.commodity(), m_splitCurrencyId).abs()).formatMoney(m_account.fraction());
}
@@ -1066,12 +1066,12 @@ bool StdTransaction::formCellText(QString& txt, int& align, int row, int col, QP
case 5:
switch(col) {
case LabelColumn2:
- align |= Qt::AlignLeft;
- txt = i18n("Status");
+ align |= TQt::AlignLeft;
+ txt = i18n("tqStatus");
break;
case ValueColumn2:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
txt = reconcileState();
break;
}
@@ -1083,24 +1083,24 @@ bool StdTransaction::formCellText(QString& txt, int& align, int row, int col, QP
return (col == ValueColumn1 && row < 4) || (col == ValueColumn2 && row > 0 && row != 4);
}
-void StdTransaction::registerCellText(QString& txt, int& align, int row, int col, QPainter* painter)
+void StdTransaction::registerCellText(TQString& txt, int& align, int row, int col, TQPainter* painter)
{
switch(row) {
case 0:
switch(col) {
case NumberColumn:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
if(haveNumberField())
txt = m_split.number();
break;
case DateColumn:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
txt = KGlobal::locale()->formatDate(m_transaction.postDate(), true);
break;
case DetailColumn:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
txt = m_payee;
if(txt.isEmpty() && m_rowsRegister < 3) {
singleLineMemo(txt, m_split);
@@ -1119,26 +1119,26 @@ void StdTransaction::registerCellText(QString& txt, int& align, int row, int col
break;
case ReconcileFlagColumn:
- align |= Qt::AlignHCenter;
+ align |= TQt::AlignHCenter;
txt = reconcileState(false);
break;
case PaymentColumn:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
if(m_split.value().isNegative()) {
txt = (-m_split.value(m_transaction.commodity(), m_splitCurrencyId)).formatMoney(m_account.fraction());
}
break;
case DepositColumn:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
if(!m_split.value().isNegative()) {
txt = m_split.value(m_transaction.commodity(), m_splitCurrencyId).formatMoney(m_account.fraction());
}
break;
case BalanceColumn:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
if(m_showBalance)
txt = m_balance.formatMoney(m_account.fraction());
else
@@ -1158,7 +1158,7 @@ void StdTransaction::registerCellText(QString& txt, int& align, int row, int col
case 1:
switch(col) {
case DetailColumn:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
txt = m_category;
if(txt.isEmpty() && !m_split.value().isZero()) {
txt = i18n("*** UNASSIGNED ***");
@@ -1175,7 +1175,7 @@ void StdTransaction::registerCellText(QString& txt, int& align, int row, int col
case 2:
switch(col) {
case DetailColumn:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
singleLineMemo(txt, m_split);
break;
@@ -1186,9 +1186,9 @@ void StdTransaction::registerCellText(QString& txt, int& align, int row, int col
}
}
-int StdTransaction::registerColWidth(int col, const QFontMetrics& cellFontMetrics)
+int StdTransaction::registerColWidth(int col, const TQFontMetrics& cellFontMetrics)
{
- QString txt;
+ TQString txt;
int firstRow = 0, lastRow = 0;
int nw = 0;
@@ -1202,7 +1202,7 @@ int StdTransaction::registerColWidth(int col, const QFontMetrics& cellFontMetric
return nw;
}
-void StdTransaction::arrangeWidgetsInForm(QMap<QString, QWidget*>& editWidgets)
+void StdTransaction::arrangeWidgetsInForm(TQMap<TQString, TQWidget*>& editWidgets)
{
if(!m_form || !m_parent)
return;
@@ -1212,7 +1212,7 @@ void StdTransaction::arrangeWidgetsInForm(QMap<QString, QWidget*>& editWidgets)
arrangeWidget(m_form, 0, ValueColumn1, editWidgets["account"]);
arrangeWidget(m_form, 1, LabelColumn1, editWidgets["cashflow"]);
arrangeWidget(m_form, 1, ValueColumn1, editWidgets["payee"]);
- arrangeWidget(m_form, 2, ValueColumn1, editWidgets["category"]->parentWidget());
+ arrangeWidget(m_form, 2, ValueColumn1, editWidgets["category"]->tqparentWidget());
arrangeWidget(m_form, 3, ValueColumn1, editWidgets["memo"]);
if(haveNumberField()) {
arrangeWidget(m_form, 1, LabelColumn2, editWidgets["number-label"]);
@@ -1225,68 +1225,68 @@ void StdTransaction::arrangeWidgetsInForm(QMap<QString, QWidget*>& editWidgets)
arrangeWidget(m_form, 2, LabelColumn1, editWidgets["category-label"]);
// get rid of the hints. we don't need them for the form
- QMap<QString, QWidget*>::iterator it;
+ TQMap<TQString, TQWidget*>::iterator it;
for(it = editWidgets.begin(); it != editWidgets.end(); ++it) {
KMyMoneyCombo* combo = dynamic_cast<KMyMoneyCombo*>(*it);
kMyMoneyLineEdit* edit = dynamic_cast<kMyMoneyLineEdit*>(*it);
KMyMoneyPayeeCombo* payee = dynamic_cast<KMyMoneyPayeeCombo*>(*it);
if(combo)
- combo->setHint(QString());
+ combo->setHint(TQString());
if(edit)
- edit->setHint(QString());
+ edit->setHint(TQString());
if(payee)
- payee->setHint(QString());
+ payee->setHint(TQString());
}
// drop the tabbar on top of the original
KMyMoneyTransactionForm::TransactionForm* form = dynamic_cast<KMyMoneyTransactionForm::TransactionForm*>(m_form);
TabBar* w = dynamic_cast<TabBar*>(editWidgets["tabbar"]);
if(w) {
- w->reparent(form->tabBar(), QPoint(0, 0), true);
+ w->reparent(form->tabBar(), TQPoint(0, 0), true);
}
}
-void StdTransaction::tabOrderInForm(QWidgetList& tabOrderWidgets) const
+void StdTransaction::tabOrderInForm(TQWidgetList& tabOrderWidgets) const
{
- QStringList taborder = QStringList::split(",", KMyMoneyGlobalSettings::stdTransactionFormTabOrder());
- QStringList::const_iterator it_s = taborder.constBegin();
- QWidget* w;
+ TQStringList taborder = TQStringList::split(",", KMyMoneyGlobalSettings::stdTransactionFormTabOrder());
+ TQStringList::const_iterator it_s = taborder.constBegin();
+ TQWidget* w;
while(it_s != taborder.constEnd()) {
if(*it_s == "account") {
- tabOrderWidgets.append(focusWidget(m_form->cellWidget(0, ValueColumn1)));
+ tabOrderWidgets.append(tqfocusWidget(m_form->cellWidget(0, ValueColumn1)));
} else if(*it_s == "cashflow") {
- tabOrderWidgets.append(focusWidget(m_form->cellWidget(1, LabelColumn1)));
+ tabOrderWidgets.append(tqfocusWidget(m_form->cellWidget(1, LabelColumn1)));
} else if(*it_s == "payee") {
- tabOrderWidgets.append(focusWidget(m_form->cellWidget(1, ValueColumn1)));
+ tabOrderWidgets.append(tqfocusWidget(m_form->cellWidget(1, ValueColumn1)));
} else if(*it_s == "category") {
// make sure to have the category field and the split button as seperate tab order widgets
// ok, we have to have some internal knowledge about the KMyMoneyCategory object, but
// it's one of our own widgets, so we actually don't care. Just make sure, that we don't
// go haywire when someone changes the KMyMoneyCategory object ...
w = m_form->cellWidget(2, ValueColumn1);
- tabOrderWidgets.append(focusWidget(w));
- w = dynamic_cast<QWidget*>(w->child("splitButton"));
+ tabOrderWidgets.append(tqfocusWidget(w));
+ w = dynamic_cast<TQWidget*>(w->child("splitButton"));
if(w)
tabOrderWidgets.append(w);
} else if(*it_s == "memo") {
- tabOrderWidgets.append(focusWidget(m_form->cellWidget(3, ValueColumn1)));
+ tabOrderWidgets.append(tqfocusWidget(m_form->cellWidget(3, ValueColumn1)));
} else if(*it_s == "number") {
if(haveNumberField()) {
- if((w = focusWidget(m_form->cellWidget(1, ValueColumn2))))
+ if((w = tqfocusWidget(m_form->cellWidget(1, ValueColumn2))))
tabOrderWidgets.append(w);
}
} else if(*it_s == "date") {
- tabOrderWidgets.append(focusWidget(m_form->cellWidget(2, ValueColumn2)));
+ tabOrderWidgets.append(tqfocusWidget(m_form->cellWidget(2, ValueColumn2)));
} else if(*it_s == "amount") {
- tabOrderWidgets.append(focusWidget(m_form->cellWidget(3, ValueColumn2)));
+ tabOrderWidgets.append(tqfocusWidget(m_form->cellWidget(3, ValueColumn2)));
} else if(*it_s == "state") {
- tabOrderWidgets.append(focusWidget(m_form->cellWidget(5, ValueColumn2)));
+ tabOrderWidgets.append(tqfocusWidget(m_form->cellWidget(5, ValueColumn2)));
}
++it_s;
}
}
-void StdTransaction::arrangeWidgetsInRegister(QMap<QString, QWidget*>& editWidgets)
+void StdTransaction::arrangeWidgetsInRegister(TQMap<TQString, TQWidget*>& editWidgets)
{
if(!m_parent)
return;
@@ -1298,7 +1298,7 @@ void StdTransaction::arrangeWidgetsInRegister(QMap<QString, QWidget*>& editWidge
arrangeWidget(m_parent, m_startRow + 0, DateColumn, editWidgets["postdate"]);
arrangeWidget(m_parent, m_startRow + 1, DateColumn, editWidgets["status"]);
arrangeWidget(m_parent, m_startRow + 0, DetailColumn, editWidgets["payee"]);
- arrangeWidget(m_parent, m_startRow + 1, DetailColumn, editWidgets["category"]->parentWidget());
+ arrangeWidget(m_parent, m_startRow + 1, DetailColumn, editWidgets["category"]->tqparentWidget());
arrangeWidget(m_parent, m_startRow + 2, DetailColumn, editWidgets["memo"]);
arrangeWidget(m_parent, m_startRow + 0, PaymentColumn, editWidgets["payment"]);
arrangeWidget(m_parent, m_startRow + 0, DepositColumn, editWidgets["deposit"]);
@@ -1307,39 +1307,39 @@ void StdTransaction::arrangeWidgetsInRegister(QMap<QString, QWidget*>& editWidge
m_parent->setRowHeight(m_startRow+2, m_parent->rowHeightHint() * 3);
}
-void StdTransaction::tabOrderInRegister(QWidgetList& tabOrderWidgets) const
+void StdTransaction::tabOrderInRegister(TQWidgetList& tabOrderWidgets) const
{
- QStringList taborder = QStringList::split(",", KMyMoneyGlobalSettings::stdTransactionRegisterTabOrder());
- QStringList::const_iterator it_s = taborder.constBegin();
- QWidget* w;
+ TQStringList taborder = TQStringList::split(",", KMyMoneyGlobalSettings::stdTransactionRegisterTabOrder());
+ TQStringList::const_iterator it_s = taborder.constBegin();
+ TQWidget* w;
while(it_s != taborder.constEnd()) {
if(*it_s == "number") {
if(haveNumberField()) {
- if((w = focusWidget(m_parent->cellWidget(m_startRow + 0, NumberColumn))))
+ if((w = tqfocusWidget(m_parent->cellWidget(m_startRow + 0, NumberColumn))))
tabOrderWidgets.append(w);
}
} else if(*it_s == "date") {
- tabOrderWidgets.append(focusWidget(m_parent->cellWidget(m_startRow + 0, DateColumn)));
+ tabOrderWidgets.append(tqfocusWidget(m_parent->cellWidget(m_startRow + 0, DateColumn)));
} else if(*it_s == "payee") {
- tabOrderWidgets.append(focusWidget(m_parent->cellWidget(m_startRow + 0, DetailColumn)));
+ tabOrderWidgets.append(tqfocusWidget(m_parent->cellWidget(m_startRow + 0, DetailColumn)));
} else if(*it_s == "category") {
// make sure to have the category field and the split button as seperate tab order widgets
// ok, we have to have some internal knowledge about the KMyMoneyCategory object, but
// it's one of our own widgets, so we actually don't care. Just make sure, that we don't
// go haywire when someone changes the KMyMoneyCategory object ...
w = m_parent->cellWidget(m_startRow + 1, DetailColumn);
- tabOrderWidgets.append(focusWidget(w));
- w = dynamic_cast<QWidget*>(w->child("splitButton"));
+ tabOrderWidgets.append(tqfocusWidget(w));
+ w = dynamic_cast<TQWidget*>(w->child("splitButton"));
if(w)
tabOrderWidgets.append(w);
} else if(*it_s == "memo") {
- tabOrderWidgets.append(focusWidget(m_parent->cellWidget(m_startRow + 2, DetailColumn)));
+ tabOrderWidgets.append(tqfocusWidget(m_parent->cellWidget(m_startRow + 2, DetailColumn)));
} else if(*it_s == "payment") {
- tabOrderWidgets.append(focusWidget(m_parent->cellWidget(m_startRow + 0, PaymentColumn)));
+ tabOrderWidgets.append(tqfocusWidget(m_parent->cellWidget(m_startRow + 0, PaymentColumn)));
} else if(*it_s == "deposit") {
- tabOrderWidgets.append(focusWidget(m_parent->cellWidget(m_startRow + 0, DepositColumn)));
+ tabOrderWidgets.append(tqfocusWidget(m_parent->cellWidget(m_startRow + 0, DepositColumn)));
} else if(*it_s == "state") {
- tabOrderWidgets.append(focusWidget(m_parent->cellWidget(m_startRow + 1, DateColumn)));
+ tabOrderWidgets.append(tqfocusWidget(m_parent->cellWidget(m_startRow + 1, DateColumn)));
}
++it_s;
}
@@ -1370,14 +1370,14 @@ int StdTransaction::numRowsRegister(bool expanded) const
return numRows;
}
-TransactionEditor* StdTransaction::createEditor(TransactionEditorContainer* regForm, const KMyMoneyRegister::SelectedTransactions& list, const QDate& lastPostDate)
+TransactionEditor* StdTransaction::createEditor(TransactionEditorContainer* regForm, const KMyMoneyRegister::SelectedTransactions& list, const TQDate& lastPostDate)
{
m_inRegisterEdit = regForm == m_parent;
return new StdTransactionEditor(regForm, this, list, lastPostDate);
}
-InvestTransaction::InvestTransaction(Register *parent, const MyMoneyTransaction& transaction, const MyMoneySplit& split, int uniqueId) :
- Transaction(parent, transaction, split, uniqueId)
+InvestTransaction::InvestTransaction(Register *tqparent, const MyMoneyTransaction& transaction, const MyMoneySplit& split, int uniqueId) :
+ Transaction(tqparent, transaction, split, uniqueId)
{
// dissect the transaction into its type, splits, currency, security etc.
InvestTransactionEditor::dissectTransaction(m_transaction, m_split,
@@ -1388,7 +1388,7 @@ InvestTransaction::InvestTransaction(Register *parent, const MyMoneyTransaction&
m_currency,
m_transactionType);
- QValueList<MyMoneySplit>::ConstIterator it_s;
+ TQValueList<MyMoneySplit>::ConstIterator it_s;
for(it_s = m_feeSplits.begin(); it_s != m_feeSplits.end(); ++it_s) {
m_feeAmount += (*it_s).value();
}
@@ -1429,18 +1429,18 @@ InvestTransaction::InvestTransaction(Register *parent, const MyMoneyTransaction&
// setup initial size
setNumRowsRegister(numRowsRegister(KMyMoneyGlobalSettings::showRegisterDetailed()));
- emit parent->itemAdded(this);
+ emit tqparent->itemAdded(this);
}
void InvestTransaction::setupForm(TransactionForm* form)
{
Transaction::setupForm(form);
- QTableItem* memo = form->item(5, 1);
+ TQTableItem* memo = form->item(5, 1);
memo->setSpan(2, 1);
}
-void InvestTransaction::activity(QString& txt, MyMoneySplit::investTransactionTypeE type) const
+void InvestTransaction::activity(TQString& txt, MyMoneySplit::investTransactionTypeE type) const
{
switch(type) {
case MyMoneySplit::AddShares:
@@ -1473,7 +1473,7 @@ void InvestTransaction::activity(QString& txt, MyMoneySplit::investTransactionTy
}
}
-bool InvestTransaction::formCellText(QString& txt, int& align, int row, int col, QPainter* /* painter */)
+bool InvestTransaction::formCellText(TQString& txt, int& align, int row, int col, TQPainter* /* painter */)
{
bool fieldEditable = false;
@@ -1481,23 +1481,23 @@ bool InvestTransaction::formCellText(QString& txt, int& align, int row, int col,
case 0:
switch(col) {
case LabelColumn1:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
txt = i18n("Activity");
break;
case ValueColumn1:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
fieldEditable = true;
activity(txt, m_transactionType);
break;
case LabelColumn2:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
txt = i18n("Date");
break;
case ValueColumn2:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
fieldEditable = true;
if(m_transaction != MyMoneyTransaction())
txt = KGlobal::locale()->formatDate(m_transaction.postDate(), true);
@@ -1508,19 +1508,19 @@ bool InvestTransaction::formCellText(QString& txt, int& align, int row, int col,
case 1:
switch(col) {
case LabelColumn1:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
txt = i18n("Security");
break;
case ValueColumn1:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
fieldEditable = true;
if(m_account.isInvest())
txt = m_security.name();
break;
case LabelColumn2:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
if(haveShares()) {
txt = i18n("Shares");
} else if(haveSplitRatio()) {
@@ -1529,11 +1529,11 @@ bool InvestTransaction::formCellText(QString& txt, int& align, int row, int col,
break;
case ValueColumn2:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
if((fieldEditable = haveShares()) == true) {
txt = m_split.shares().abs().formatMoney("", MyMoneyMoney::denomToPrec(m_security.smallestAccountFraction()));
} else if(haveSplitRatio()) {
- txt = QString("1 / %1").arg(m_split.shares().abs().formatMoney("", -1));
+ txt = TQString("1 / %1").tqarg(m_split.shares().abs().formatMoney("", -1));
}
break;
}
@@ -1542,26 +1542,26 @@ bool InvestTransaction::formCellText(QString& txt, int& align, int row, int col,
case 2:
switch(col) {
case LabelColumn1:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
if(haveAssetAccount())
txt = i18n("Account");
break;
case ValueColumn1:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
if((fieldEditable = haveAssetAccount()) == true) {
txt = MyMoneyFile::instance()->accountToCategory(m_assetAccountSplit.accountId());
}
break;
case LabelColumn2:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
if(havePrice())
txt = i18n("Price/share");
break;
case ValueColumn2:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
if((fieldEditable = havePrice()) == true && !m_split.shares().isZero()) {
txt = m_split.price().formatMoney("", KMyMoneyGlobalSettings::pricePrecision());
}
@@ -1572,26 +1572,26 @@ bool InvestTransaction::formCellText(QString& txt, int& align, int row, int col,
case 3:
switch(col) {
case LabelColumn1:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
if(haveFees())
txt = i18n("Fees");
break;
case ValueColumn1:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
if((fieldEditable = haveFees()) == true) {
txt = m_feeCategory;
}
break;
case LabelColumn2:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
if(haveFees() && !m_feeCategory.isEmpty())
txt = i18n("Amount");
break;
case ValueColumn2:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
if(haveFees()) {
if((fieldEditable = !m_feeCategory.isEmpty()) == true) {
txt = m_feeAmount.formatMoney(m_currency);
@@ -1604,26 +1604,26 @@ bool InvestTransaction::formCellText(QString& txt, int& align, int row, int col,
case 4:
switch(col) {
case LabelColumn1:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
if(haveInterest())
txt = i18n("Interest");
break;
case ValueColumn1:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
if((fieldEditable = haveInterest()) == true) {
txt = m_interestCategory;
}
break;
case LabelColumn2:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
if(haveInterest() && !m_interestCategory.isEmpty())
txt = i18n("Amount");
break;
case ValueColumn2:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
if(haveInterest()) {
if((fieldEditable = !m_interestCategory.isEmpty()) == true) {
txt = (-m_interestAmount).formatMoney(m_currency);
@@ -1636,27 +1636,27 @@ bool InvestTransaction::formCellText(QString& txt, int& align, int row, int col,
case 5:
switch(col) {
case LabelColumn1:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
txt = i18n("Memo");
break;
case ValueColumn1:
- align &= ~Qt::AlignVCenter;
- align |= Qt::AlignTop;
- align |= Qt::AlignLeft;
+ align &= ~TQt::AlignVCenter;
+ align |= TQt::AlignTop;
+ align |= TQt::AlignLeft;
fieldEditable = true;
if(m_transaction != MyMoneyTransaction())
txt = m_split.memo().section('\n', 0, 2);
break;
case LabelColumn2:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
if(haveAmount())
txt = i18n("Total");
break;
case ValueColumn2:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
if((fieldEditable = haveAmount()) == true) {
txt = m_assetAccountSplit.value().abs().formatMoney(m_currency);
}
@@ -1666,12 +1666,12 @@ bool InvestTransaction::formCellText(QString& txt, int& align, int row, int col,
case 6:
switch(col) {
case LabelColumn2:
- align |= Qt::AlignLeft;
- txt = i18n("Status");
+ align |= TQt::AlignLeft;
+ txt = i18n("tqStatus");
break;
case ValueColumn2:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
fieldEditable = true;
txt = reconcileState();
break;
@@ -1681,50 +1681,50 @@ bool InvestTransaction::formCellText(QString& txt, int& align, int row, int col,
return fieldEditable;
}
-void InvestTransaction::registerCellText(QString& txt, int& align, int row, int col, QPainter* /* painter */)
+void InvestTransaction::registerCellText(TQString& txt, int& align, int row, int col, TQPainter* /* painter */)
{
switch(row) {
case 0:
switch(col) {
case DateColumn:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
txt = KGlobal::locale()->formatDate(m_transaction.postDate(), true);
break;
case DetailColumn:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
activity(txt, m_transactionType);
break;
case SecurityColumn:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
if(m_account.isInvest())
txt = m_security.name();
break;
case ReconcileFlagColumn:
- align |= Qt::AlignHCenter;
+ align |= TQt::AlignHCenter;
txt = reconcileState(false);
break;
case QuantityColumn:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
if(haveShares())
txt = m_split.shares().abs().formatMoney("", MyMoneyMoney::denomToPrec(m_security.smallestAccountFraction()));
else if(haveSplitRatio()) {
- txt = QString("1 / %1").arg(m_split.shares().abs().formatMoney("", -1));
+ txt = TQString("1 / %1").tqarg(m_split.shares().abs().formatMoney("", -1));
}
break;
case PriceColumn:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
if(havePrice() && !m_split.shares().isZero()) {
txt = m_split.price().formatMoney(m_currency.tradingSymbol(), KMyMoneyGlobalSettings::pricePrecision());
}
break;
case ValueColumn:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
if(haveAmount()) {
txt = m_assetAccountSplit.value().abs().formatMoney(m_currency);
@@ -1734,7 +1734,7 @@ void InvestTransaction::registerCellText(QString& txt, int& align, int row, int
break;
case BalanceColumn:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
if(m_showBalance)
txt = m_balance.formatMoney("", MyMoneyMoney::denomToPrec(m_security.smallestAccountFraction()));
else
@@ -1749,7 +1749,7 @@ void InvestTransaction::registerCellText(QString& txt, int& align, int row, int
case 1:
switch(col) {
case DetailColumn:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
if(haveAssetAccount() && !m_assetAccountSplit.accountId().isEmpty()) {
txt = MyMoneyFile::instance()->accountToCategory(m_assetAccountSplit.accountId());
} else if(haveInterest() && m_interestSplits.count()) {
@@ -1761,7 +1761,7 @@ void InvestTransaction::registerCellText(QString& txt, int& align, int row, int
break;
case QuantityColumn:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
if(haveAssetAccount() && !m_assetAccountSplit.accountId().isEmpty()) {
// txt = m_interestAmount.abs().formatMoney(m_currency);
} else if(haveInterest() && m_interestSplits.count()) {
@@ -1779,7 +1779,7 @@ void InvestTransaction::registerCellText(QString& txt, int& align, int row, int
case 2:
switch(col) {
case DetailColumn:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
if(haveAssetAccount() && !m_assetAccountSplit.accountId().isEmpty()
&& haveInterest() && m_interestSplits.count()) {
txt = m_interestCategory;
@@ -1790,7 +1790,7 @@ void InvestTransaction::registerCellText(QString& txt, int& align, int row, int
break;
case QuantityColumn:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
if(haveAssetAccount() && !m_assetAccountSplit.accountId().isEmpty()
&& haveInterest() && m_interestSplits.count()) {
txt = (-m_interestAmount).formatMoney(m_currency);
@@ -1807,7 +1807,7 @@ void InvestTransaction::registerCellText(QString& txt, int& align, int row, int
case 3:
switch(col) {
case DetailColumn:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
if(haveAssetAccount() && !m_assetAccountSplit.accountId().isEmpty()
&& haveInterest() && m_interestSplits.count()
&& haveFees() && m_feeSplits.count()) {
@@ -1817,7 +1817,7 @@ void InvestTransaction::registerCellText(QString& txt, int& align, int row, int
break;
case QuantityColumn:
- align |= Qt::AlignRight;
+ align |= TQt::AlignRight;
if(haveAssetAccount() && !m_assetAccountSplit.accountId().isEmpty()
&& haveInterest() && m_interestSplits.count()
&& haveFees() && m_feeSplits.count()) {
@@ -1833,7 +1833,7 @@ void InvestTransaction::registerCellText(QString& txt, int& align, int row, int
case 4:
switch(col) {
case DetailColumn:
- align |= Qt::AlignLeft;
+ align |= TQt::AlignLeft;
singleLineMemo(txt, m_split);
break;
@@ -1844,9 +1844,9 @@ void InvestTransaction::registerCellText(QString& txt, int& align, int row, int
}
}
-int InvestTransaction::registerColWidth(int col, const QFontMetrics& cellFontMetrics)
+int InvestTransaction::registerColWidth(int col, const TQFontMetrics& cellFontMetrics)
{
- QString txt;
+ TQString txt;
MyMoneyMoney amount;
int nw = 0;
@@ -1855,7 +1855,7 @@ int InvestTransaction::registerColWidth(int col, const QFontMetrics& cellFontMet
int w;
Transaction::registerCellText(txt, row, col);
w = cellFontMetrics.width(txt+" ");
- nw = QMAX(nw, w);
+ nw = TQMAX(nw, w);
}
// TODO the optimized way would be to base the size on the contents of a single row
@@ -1876,7 +1876,7 @@ int InvestTransaction::registerColWidth(int col, const QFontMetrics& cellFontMet
return nw;
}
-void InvestTransaction::arrangeWidgetsInForm(QMap<QString, QWidget*>& editWidgets)
+void InvestTransaction::arrangeWidgetsInForm(TQMap<TQString, TQWidget*>& editWidgets)
{
if(!m_form || !m_parent)
return;
@@ -1890,9 +1890,9 @@ void InvestTransaction::arrangeWidgetsInForm(QMap<QString, QWidget*>& editWidget
arrangeWidget(m_form, 1, ValueColumn2, editWidgets["shares"]);
arrangeWidget(m_form, 2, ValueColumn1, editWidgets["asset-account"]);
arrangeWidget(m_form, 2, ValueColumn2, editWidgets["price"]);
- arrangeWidget(m_form, 3, ValueColumn1, editWidgets["fee-account"]->parentWidget());
+ arrangeWidget(m_form, 3, ValueColumn1, editWidgets["fee-account"]->tqparentWidget());
arrangeWidget(m_form, 3, ValueColumn2, editWidgets["fee-amount"]);
- arrangeWidget(m_form, 4, ValueColumn1, editWidgets["interest-account"]->parentWidget());
+ arrangeWidget(m_form, 4, ValueColumn1, editWidgets["interest-account"]->tqparentWidget());
arrangeWidget(m_form, 4, ValueColumn2, editWidgets["interest-amount"]);
arrangeWidget(m_form, 5, ValueColumn1, editWidgets["memo"]);
arrangeWidget(m_form, 5, ValueColumn2, editWidgets["total"]);
@@ -1909,77 +1909,77 @@ void InvestTransaction::arrangeWidgetsInForm(QMap<QString, QWidget*>& editWidget
arrangeWidget(m_form, 5, LabelColumn2, editWidgets["total-label"]);
// get rid of the hints. we don't need them for the form
- QMap<QString, QWidget*>::iterator it;
+ TQMap<TQString, TQWidget*>::iterator it;
for(it = editWidgets.begin(); it != editWidgets.end(); ++it) {
KMyMoneyCombo* combo = dynamic_cast<KMyMoneyCombo*>(*it);
kMyMoneyLineEdit* lineedit = dynamic_cast<kMyMoneyLineEdit*>(*it);
kMyMoneyEdit* edit = dynamic_cast<kMyMoneyEdit*>(*it);
KMyMoneyPayeeCombo* payee = dynamic_cast<KMyMoneyPayeeCombo*>(*it);
if(combo)
- combo->setHint(QString());
+ combo->setHint(TQString());
if(edit)
- edit->setHint(QString());
+ edit->setHint(TQString());
if(lineedit)
- lineedit->setHint(QString());
+ lineedit->setHint(TQString());
if(payee)
- payee->setHint(QString());
+ payee->setHint(TQString());
}
}
-void InvestTransaction::tabOrderInForm(QWidgetList& tabOrderWidgets) const
+void InvestTransaction::tabOrderInForm(TQWidgetList& tabOrderWidgets) const
{
// activity
- tabOrderWidgets.append(focusWidget(m_form->cellWidget(0, ValueColumn1)));
+ tabOrderWidgets.append(tqfocusWidget(m_form->cellWidget(0, ValueColumn1)));
// date
- tabOrderWidgets.append(focusWidget(m_form->cellWidget(0, ValueColumn2)));
+ tabOrderWidgets.append(tqfocusWidget(m_form->cellWidget(0, ValueColumn2)));
// security
- tabOrderWidgets.append(focusWidget(m_form->cellWidget(1, ValueColumn1)));
+ tabOrderWidgets.append(tqfocusWidget(m_form->cellWidget(1, ValueColumn1)));
// shares
- tabOrderWidgets.append(focusWidget(m_form->cellWidget(1, ValueColumn2)));
+ tabOrderWidgets.append(tqfocusWidget(m_form->cellWidget(1, ValueColumn2)));
// account
- tabOrderWidgets.append(focusWidget(m_form->cellWidget(2, ValueColumn1)));
+ tabOrderWidgets.append(tqfocusWidget(m_form->cellWidget(2, ValueColumn1)));
// price
- tabOrderWidgets.append(focusWidget(m_form->cellWidget(2, ValueColumn2)));
+ tabOrderWidgets.append(tqfocusWidget(m_form->cellWidget(2, ValueColumn2)));
// make sure to have the fee category field and the split button as seperate tab order widgets
// ok, we have to have some internal knowledge about the KMyMoneyCategory object, but
// it's one of our own widgets, so we actually don't care. Just make sure, that we don't
// go haywire when someone changes the KMyMoneyCategory object ...
- QWidget* w = m_form->cellWidget(3, ValueColumn1);
- tabOrderWidgets.append(focusWidget(w));
- w = dynamic_cast<QWidget*>(w->child("splitButton"));
+ TQWidget* w = m_form->cellWidget(3, ValueColumn1);
+ tabOrderWidgets.append(tqfocusWidget(w));
+ w = dynamic_cast<TQWidget*>(w->child("splitButton"));
if(w)
tabOrderWidgets.append(w);
// fee amount
- tabOrderWidgets.append(focusWidget(m_form->cellWidget(3, ValueColumn2)));
+ tabOrderWidgets.append(tqfocusWidget(m_form->cellWidget(3, ValueColumn2)));
// the same applies for the interest categories
w = m_form->cellWidget(4, ValueColumn1);
- tabOrderWidgets.append(focusWidget(w));
- w = dynamic_cast<QWidget*>(w->child("splitButton"));
+ tabOrderWidgets.append(tqfocusWidget(w));
+ w = dynamic_cast<TQWidget*>(w->child("splitButton"));
if(w)
tabOrderWidgets.append(w);
// interest amount
- tabOrderWidgets.append(focusWidget(m_form->cellWidget(4, ValueColumn2)));
+ tabOrderWidgets.append(tqfocusWidget(m_form->cellWidget(4, ValueColumn2)));
// memo
- tabOrderWidgets.append(focusWidget(m_form->cellWidget(5, ValueColumn1)));
+ tabOrderWidgets.append(tqfocusWidget(m_form->cellWidget(5, ValueColumn1)));
// total
- tabOrderWidgets.append(focusWidget(m_form->cellWidget(5, ValueColumn2)));
+ tabOrderWidgets.append(tqfocusWidget(m_form->cellWidget(5, ValueColumn2)));
// state
- tabOrderWidgets.append(focusWidget(m_form->cellWidget(6, ValueColumn2)));
+ tabOrderWidgets.append(tqfocusWidget(m_form->cellWidget(6, ValueColumn2)));
}
-void InvestTransaction::arrangeWidgetsInRegister(QMap<QString, QWidget*>& editWidgets)
+void InvestTransaction::arrangeWidgetsInRegister(TQMap<TQString, TQWidget*>& editWidgets)
{
if(!m_parent)
return;
@@ -1990,8 +1990,8 @@ void InvestTransaction::arrangeWidgetsInRegister(QMap<QString, QWidget*>& editWi
arrangeWidget(m_parent, m_startRow + 0, SecurityColumn, editWidgets["security"]);
arrangeWidget(m_parent, m_startRow + 0, DetailColumn, editWidgets["activity"]);
arrangeWidget(m_parent, m_startRow + 1, DetailColumn, editWidgets["asset-account"]);
- arrangeWidget(m_parent, m_startRow + 2, DetailColumn, editWidgets["interest-account"]->parentWidget());
- arrangeWidget(m_parent, m_startRow + 3, DetailColumn, editWidgets["fee-account"]->parentWidget());
+ arrangeWidget(m_parent, m_startRow + 2, DetailColumn, editWidgets["interest-account"]->tqparentWidget());
+ arrangeWidget(m_parent, m_startRow + 3, DetailColumn, editWidgets["fee-account"]->tqparentWidget());
arrangeWidget(m_parent, m_startRow + 4, DetailColumn, editWidgets["memo"]);
arrangeWidget(m_parent, m_startRow + 0, QuantityColumn, editWidgets["shares"]);
arrangeWidget(m_parent, m_startRow + 0, PriceColumn, editWidgets["price"]);
@@ -2004,50 +2004,50 @@ void InvestTransaction::arrangeWidgetsInRegister(QMap<QString, QWidget*>& editWi
m_parent->setRowHeight(m_startRow+4, m_parent->rowHeightHint() * 3);
}
-void InvestTransaction::tabOrderInRegister(QWidgetList& tabOrderWidgets) const
+void InvestTransaction::tabOrderInRegister(TQWidgetList& tabOrderWidgets) const
{
- QWidget* w;
+ TQWidget* w;
// date
- tabOrderWidgets.append(focusWidget(m_parent->cellWidget(m_startRow + 0, DateColumn)));
+ tabOrderWidgets.append(tqfocusWidget(m_parent->cellWidget(m_startRow + 0, DateColumn)));
// security
- tabOrderWidgets.append(focusWidget(m_parent->cellWidget(m_startRow + 0, SecurityColumn)));
+ tabOrderWidgets.append(tqfocusWidget(m_parent->cellWidget(m_startRow + 0, SecurityColumn)));
// activity
- tabOrderWidgets.append(focusWidget(m_parent->cellWidget(m_startRow + 0, DetailColumn)));
+ tabOrderWidgets.append(tqfocusWidget(m_parent->cellWidget(m_startRow + 0, DetailColumn)));
// shares
- tabOrderWidgets.append(focusWidget(m_parent->cellWidget(m_startRow + 0, QuantityColumn)));
+ tabOrderWidgets.append(tqfocusWidget(m_parent->cellWidget(m_startRow + 0, QuantityColumn)));
// price
- tabOrderWidgets.append(focusWidget(m_parent->cellWidget(m_startRow + 0, PriceColumn)));
+ tabOrderWidgets.append(tqfocusWidget(m_parent->cellWidget(m_startRow + 0, PriceColumn)));
// asset account
- tabOrderWidgets.append(focusWidget(m_parent->cellWidget(m_startRow + 1, DetailColumn)));
+ tabOrderWidgets.append(tqfocusWidget(m_parent->cellWidget(m_startRow + 1, DetailColumn)));
// make sure to have the category fields and the split button as seperate tab order widgets
// ok, we have to have some internal knowledge about the KMyMoneyCategory object, but
// it's one of our own widgets, so we actually don't care. Just make sure, that we don't
// go haywire when someone changes the KMyMoneyCategory object ...
w = m_parent->cellWidget(m_startRow + 2, DetailColumn); // interest account
- tabOrderWidgets.append(focusWidget(w));
- w = dynamic_cast<QWidget*>(w->child("splitButton"));
+ tabOrderWidgets.append(tqfocusWidget(w));
+ w = dynamic_cast<TQWidget*>(w->child("splitButton"));
if(w)
tabOrderWidgets.append(w);
// interest amount
- tabOrderWidgets.append(focusWidget(m_parent->cellWidget(m_startRow + 2, QuantityColumn)));
+ tabOrderWidgets.append(tqfocusWidget(m_parent->cellWidget(m_startRow + 2, QuantityColumn)));
w = m_parent->cellWidget(m_startRow + 3, DetailColumn); // fee account
- tabOrderWidgets.append(focusWidget(w));
- w = dynamic_cast<QWidget*>(w->child("splitButton"));
+ tabOrderWidgets.append(tqfocusWidget(w));
+ w = dynamic_cast<TQWidget*>(w->child("splitButton"));
if(w)
tabOrderWidgets.append(w);
// fee amount
- tabOrderWidgets.append(focusWidget(m_parent->cellWidget(m_startRow + 3, QuantityColumn)));
+ tabOrderWidgets.append(tqfocusWidget(m_parent->cellWidget(m_startRow + 3, QuantityColumn)));
// memo
- tabOrderWidgets.append(focusWidget(m_parent->cellWidget(m_startRow + 4, DetailColumn)));
+ tabOrderWidgets.append(tqfocusWidget(m_parent->cellWidget(m_startRow + 4, DetailColumn)));
// status
- tabOrderWidgets.append(focusWidget(m_parent->cellWidget(m_startRow + 1, DateColumn)));
+ tabOrderWidgets.append(tqfocusWidget(m_parent->cellWidget(m_startRow + 1, DateColumn)));
}
int InvestTransaction::numRowsRegister(bool expanded) const
@@ -2174,14 +2174,14 @@ bool InvestTransaction::haveSplitRatio(void) const
return m_transactionType == MyMoneySplit::SplitShares;
}
-void InvestTransaction::splits(MyMoneySplit& assetAccountSplit, QValueList<MyMoneySplit>& interestSplits, QValueList<MyMoneySplit>& feeSplits) const
+void InvestTransaction::splits(MyMoneySplit& assetAccountSplit, TQValueList<MyMoneySplit>& interestSplits, TQValueList<MyMoneySplit>& feeSplits) const
{
assetAccountSplit = m_assetAccountSplit;
interestSplits = m_interestSplits;
feeSplits = m_feeSplits;
}
-TransactionEditor* InvestTransaction::createEditor(TransactionEditorContainer* regForm, const KMyMoneyRegister::SelectedTransactions& list, const QDate& lastPostDate)
+TransactionEditor* InvestTransaction::createEditor(TransactionEditorContainer* regForm, const KMyMoneyRegister::SelectedTransactions& list, const TQDate& lastPostDate)
{
m_inRegisterEdit = regForm == m_parent;
return new InvestTransactionEditor(regForm, this, list, lastPostDate);