summaryrefslogtreecommitdiffstats
path: root/kppp/logview/monthly.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-18 18:33:51 -0600
committerTimothy Pearson <[email protected]>2011-12-18 18:33:51 -0600
commit089118c18533dfa3e6ce5065dbebdd4db94051f1 (patch)
treece014fb2326a80fcfafa2362b7ff88486aa17c96 /kppp/logview/monthly.cpp
parent83677e35509b4dafac63b76995652bdf3b49f209 (diff)
downloadtdenetwork-089118c18533dfa3e6ce5065dbebdd4db94051f1.tar.gz
tdenetwork-089118c18533dfa3e6ce5065dbebdd4db94051f1.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'kppp/logview/monthly.cpp')
-rw-r--r--kppp/logview/monthly.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kppp/logview/monthly.cpp b/kppp/logview/monthly.cpp
index 831976cc..030cd3ba 100644
--- a/kppp/logview/monthly.cpp
+++ b/kppp/logview/monthly.cpp
@@ -46,8 +46,8 @@ static void formatBytes(double bytes, TQString &result) {
static void formatBytesMonth(double bytes, TQString &result) {
int day, days;
- day = TQDate::tqcurrentDate().day();
- days = TQDate::tqcurrentDate().daysInMonth();
+ day = TQDate::currentDate().day();
+ days = TQDate::currentDate().daysInMonth();
bytes = (bytes / day) * days;
@@ -76,8 +76,8 @@ static void formatDuration(int seconds, TQString &result) {
static void formatDurationMonth(int seconds, TQString &result) {
int day, days;
- day = TQDate::tqcurrentDate().day();
- days = TQDate::tqcurrentDate().daysInMonth();
+ day = TQDate::currentDate().day();
+ days = TQDate::currentDate().daysInMonth();
seconds = (seconds / day) * days;
@@ -97,8 +97,8 @@ static void formatDurationMonth(int seconds, TQString &result) {
static void costsMonth(double costs, double &result) {
int day, days;
- day = TQDate::tqcurrentDate().day();
- days = TQDate::tqcurrentDate().daysInMonth();
+ day = TQDate::currentDate().day();
+ days = TQDate::currentDate().daysInMonth();
result = (costs / day) * days;
@@ -212,7 +212,7 @@ MonthlyWidget::MonthlyWidget(TQWidget *parent) :
lv2->setSorting(-1);
lv2->setItemMargin(2);
lv2->setMaximumHeight(100);
- lv2->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Minimum);
+ lv2->setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Minimum);
lv2->setSelectionMode(TQListView::NoSelection);
title = new TQLabel("X", this);
@@ -220,7 +220,7 @@ MonthlyWidget::MonthlyWidget(TQWidget *parent) :
f.setPointSize(f.pointSize() + 2);
f.setBold(TRUE);
title->setFont(f);
- title->setFixedHeight(title->tqsizeHint().height()*2);
+ title->setFixedHeight(title->sizeHint().height()*2);
cboConnections = new TQComboBox(false, this); // add a combo box to select connections
cboConnections->setMaximumWidth(200); // a resonable size
@@ -265,8 +265,8 @@ void MonthlyWidget::layoutWidget() {
f2.setPointSize(f2.pointSize() + 1);
f2.setBold(TRUE);
l->setFont(f2);
- l->setFixedHeight(l->tqsizeHint().height());
- l->tqsetAlignment( AlignLeft );
+ l->setFixedHeight(l->sizeHint().height());
+ l->setAlignment( AlignLeft );
tl->addWidget(l, 5, 0);
tl->addWidget(bbox, 1, 2);
tl->addMultiCellWidget(lv, 1, 4, 0, 1);
@@ -396,7 +396,7 @@ void MonthlyWidget::plotMonth() {
const KCalendarSystem * calendar = KGlobal::locale()->calendar();
- if(calendar->month(periodeFirst()) == calendar->month(TQDate::tqcurrentDate())) {
+ if(calendar->month(periodeFirst()) == calendar->month(TQDate::currentDate())) {
TQString m_bin, m_bout;
@@ -456,7 +456,7 @@ void MonthlyWidget::prevMonth() {
void MonthlyWidget::currentMonth() {
const KCalendarSystem * calendar = KGlobal::locale()->calendar();
- TQDate dt = TQDate::tqcurrentDate();
+ TQDate dt = TQDate::currentDate();
calendar->setYMD(m_periodeFirst, calendar->year(dt), calendar->month(dt), 1);
plotMonth();
@@ -464,7 +464,7 @@ void MonthlyWidget::currentMonth() {
void MonthlyWidget::exportWizard() {
const KCalendarSystem * calendar = KGlobal::locale()->calendar();
- TQString date = TQString::tqfromLatin1("%1-%2") // e.g.: June-2001
+ TQString date = TQString::fromLatin1("%1-%2") // e.g.: June-2001
.tqarg(calendar->monthName(periodeFirst()))
.tqarg(calendar->year(periodeFirst()));
@@ -576,7 +576,7 @@ void MonthlyWidget::exportWizard() {
}
}
- if(calendar->month(periodeFirst()) == calendar->month(TQDate::tqcurrentDate())) {
+ if(calendar->month(periodeFirst()) == calendar->month(TQDate::currentDate())) {
TQString m_bin, m_bout;
if(bin < 0)
@@ -595,7 +595,7 @@ void MonthlyWidget::exportWizard() {
costsMonth(costs, costs);
TQString m_costs(KGlobal::locale()->formatMoney(costs, TQString(), 2));
- TQString datetime = KGlobal::locale()->formatDateTime( TQDateTime::tqcurrentDateTime(), true);
+ TQString datetime = KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime(), true);
exportIFace->addEmptyLine();
exportIFace->addDataline(i18n("Monthly estimates (%1)").tqarg(datetime),