summaryrefslogtreecommitdiffstats
path: root/kmymoney2/views/kgloballedgerview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/views/kgloballedgerview.cpp')
-rw-r--r--kmymoney2/views/kgloballedgerview.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kmymoney2/views/kgloballedgerview.cpp b/kmymoney2/views/kgloballedgerview.cpp
index 87f8890..38e5fd3 100644
--- a/kmymoney2/views/kgloballedgerview.cpp
+++ b/kmymoney2/views/kgloballedgerview.cpp
@@ -176,7 +176,7 @@ KGlobalLedgerView::KGlobalLedgerView(TQWidget *parent, const char *name )
//m_toolbar->setMaximumSize(50,20);
m_toolbar->alignItemRight(1);
#endif
- m_toolbar->tqsetSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed);
+ m_toolbar->setSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed);
tqlayout()->addWidget(m_toolbarFrame);
// create the register frame
@@ -448,7 +448,7 @@ void KGlobalLedgerView::loadView(void)
// show scheduled transactions which have a scheduled postdate
// within the next 'period' days. In reconciliation mode, the
// period starts on the statement date.
- TQDate endDate = TQDate::tqcurrentDate().addDays(period);
+ TQDate endDate = TQDate::currentDate().addDays(period);
if(isReconciliationAccount())
endDate = reconciliationDate.addDays(period);
TQValueList<MyMoneySchedule> scheduleList = MyMoneyFile::instance()->scheduleList(m_account.id());
@@ -464,7 +464,7 @@ void KGlobalLedgerView::loadView(void)
// certainly be posted in the past. So we take todays date
// as the alternative
if(s.isOverdue())
- t.setPostDate(TQDate::tqcurrentDate());
+ t.setPostDate(TQDate::currentDate());
else
t.setPostDate(s.adjustedNextDueDate());
const TQValueList<MyMoneySplit>& splits = t.splits();
@@ -476,7 +476,7 @@ void KGlobalLedgerView::loadView(void)
}
// keep track of this payment locally (not in the engine)
if(s.isOverdue())
- s.setLastPayment(TQDate::tqcurrentDate());
+ s.setLastPayment(TQDate::currentDate());
else
s.setLastPayment(s.nextDueDate());
@@ -629,7 +629,7 @@ void KGlobalLedgerView::loadView(void)
}
}
- if(t->transaction().postDate() > TQDate::tqcurrentDate()) {
+ if(t->transaction().postDate() > TQDate::currentDate()) {
tracer.printf("Reducing actual balance by %s because %s/%s(%s) is in the future", (split.shares() * factor).formatMoney("", 2).data(), t->transaction().id().data(), split.id().data(), t->transaction().postDate().toString(Qt::ISODate).data());
actBalance[split.accountId()] -= split.shares() * factor;
}
@@ -1149,12 +1149,12 @@ TransactionEditor* KGlobalLedgerView::startEdit(const KMyMoneyRegister::Selected
// Check if the editor has some preference on where to set the focus
// If not, set the focus to the first widget in the tab order
- TQWidget* tqfocusWidget = editor->firstWidget();
- if(!tqfocusWidget)
- tqfocusWidget = m_tabOrderWidgets.first();
+ TQWidget* focusWidget = editor->firstWidget();
+ if(!focusWidget)
+ focusWidget = m_tabOrderWidgets.first();
// for some reason, this only works reliably if delayed a bit
- TQTimer::singleShot(10, tqfocusWidget, TQT_SLOT(setFocus()));
+ TQTimer::singleShot(10, focusWidget, TQT_SLOT(setFocus()));
// preset to 'I have no idea which type to create' for the next round.
d->m_action = KMyMoneyRegister::ActionNone;
@@ -1207,7 +1207,7 @@ bool KGlobalLedgerView::focusNextPrevChild(bool next)
TQWidget *w = 0;
TQWidget *currentWidget;
- w = tqApp->tqfocusWidget();
+ w = tqApp->focusWidget();
while(w && m_tabOrderWidgets.find(w) == -1) {
// qDebug("'%s' not in list, use parent", w->className());
w = w->parentWidget();