summaryrefslogtreecommitdiffstats
path: root/kplato/kptaccountsview.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kplato/kptaccountsview.cc')
-rw-r--r--kplato/kptaccountsview.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/kplato/kptaccountsview.cc b/kplato/kptaccountsview.cc
index 9825d9c2..5e2443db 100644
--- a/kplato/kptaccountsview.cc
+++ b/kplato/kptaccountsview.cc
@@ -32,9 +32,9 @@
#include <tqdatetimeedit.h>
#include <tqheader.h>
#include <tqlabel.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqpainter.h>
-#include <tqpalette.h>
+#include <palette.h>
#include <tqpushbutton.h>
#include <tqvaluelist.h>
#include <tqpopupmenu.h>
@@ -99,7 +99,7 @@ AccountsView::AccountsView(Project &project, View *view, TQWidget *parent)
m_project(project),
m_accounts(project.accounts()) {
- m_date = TQDate::tqcurrentDate();
+ m_date = TQDate::currentDate();
m_period = 0;
m_periodTexts<<i18n("Day")<<i18n("Week")<<i18n("Month");
m_cumulative = false;
@@ -110,10 +110,10 @@ AccountsView::AccountsView(Project &project, View *view, TQWidget *parent)
m_label = new Label(this);
m_label->setFrameShape(TQLabel::StyledPanel);
m_label->setFrameShadow(TQLabel::Sunken);
- m_label->tqsetAlignment(int(TQLabel::WordBreak | TQLabel::AlignVCenter));
+ m_label->setAlignment(int(TQLabel::WordBreak | TQLabel::AlignVCenter));
lay2->addWidget(m_label);
m_changeBtn = new TQPushButton(i18n("Configure..."), this);
- m_changeBtn->tqsetSizePolicy(TQSizePolicy((TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, m_changeBtn->sizePolicy().hasHeightForWidth()));
+ m_changeBtn->setSizePolicy(TQSizePolicy((TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, m_changeBtn->sizePolicy().hasHeightForWidth()));
lay2->addWidget(m_changeBtn);
lay1->addLayout(lay2);
@@ -139,7 +139,7 @@ void AccountsView::zoom(double zoom) {
}
void AccountsView::init() {
- m_date = TQDate::tqcurrentDate();
+ m_date = TQDate::currentDate();
m_period = 0;
initAccList(m_accounts.accountList());
}
@@ -216,8 +216,8 @@ void AccountsView::slotUpdate() {
if (m_cumulative) {
t += " <b>" + i18n("Cumulative") + "</b> ";
}
- t += i18n("Cut-off date:%1").tqarg("<b>" + locale->formatDate(m_date, true) + "</b>");
- t += " " + i18n("Periodicity:%1").tqarg("<b>" + periodText(m_period) + "</b>");
+ t += i18n("Cut-off date:%1").arg("<b>" + locale->formatDate(m_date, true) + "</b>");
+ t += " " + i18n("Periodicity:%1").arg("<b>" + periodText(m_period) + "</b>");
m_label->setText(t);
// Add columns for selected period/periods
@@ -260,7 +260,7 @@ void AccountsView::slotUpdate() {
//kdDebug()<<k_funcinfo<<c<<": "<<dt<<"-"<<pend<<" : "<<end<<endl;
int y;
int w = cal->weekNumber(dt, &y);
- TQString t = i18n("<week>-<year>", "%1-%2").tqarg(w).tqarg(y);
+ TQString t = i18n("<week>-<year>", "%1-%2").arg(w).arg(y);
m_dlv->addSlaveColumn(t);
dt = pend.addDays(1);
pend = cal->addDays(pend, 7);
@@ -305,7 +305,7 @@ void AccountsView::slotUpdate() {
cal->setYMD(pend, dt.year(), dt.month(), dt.daysInMonth());
for (; pend <= end; ++c) {
//kdDebug()<<k_funcinfo<<c<<": "<<dt<<"-"<<pend<<" : "<<end<<endl;
- TQString m = cal->monthName(dt, true) + TQString(" %1").tqarg( dt.year());
+ TQString m = cal->monthName(dt, true) + TQString(" %1").arg( dt.year());
m_dlv->addSlaveColumn(m);
dt = pend.addDays(1); // 1. next month
@@ -378,7 +378,7 @@ bool AccountsView::setContext(Context::Accountsview &context) {
//m_dlv->setSizes(list); //NOTE: This doesn't always work!
m_date = context.date;
if (!m_date.isValid())
- m_date = TQDate::tqcurrentDate();
+ m_date = TQDate::currentDate();
m_period = context.period;
m_cumulative = context.cumulative;
setContextClosedItems(context);