From 089118c18533dfa3e6ce5065dbebdd4db94051f1 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 18 Dec 2011 18:33:51 -0600 Subject: Rename old tq methods that no longer need a unique name --- kppp/logview/export.cpp | 6 +++--- kppp/logview/main.cpp | 4 ++-- kppp/logview/monthly.cpp | 30 +++++++++++++++--------------- 3 files changed, 20 insertions(+), 20 deletions(-) (limited to 'kppp/logview') diff --git a/kppp/logview/export.cpp b/kppp/logview/export.cpp index b646acdc..a3d55686 100644 --- a/kppp/logview/export.cpp +++ b/kppp/logview/export.cpp @@ -73,7 +73,7 @@ ExportWizard::ExportWizard(TQWidget *parent, const TQString &_date) formatLayout->addSpacing(10); typeInfo = new TQLabel(formatPage); - typeInfo->tqsetAlignment(TQt::AlignTop | TQt::WordBreak); + typeInfo->setAlignment(TQt::AlignTop | TQt::WordBreak); typeInfo->setText(i18n("Please choose the output format on the left side.")); typeInfo->setMinimumSize(350, 200); formatLayout->addWidget(typeInfo); @@ -222,9 +222,9 @@ HTMLExport::HTMLExport(const TQString &filename, const TQString &date) TQString title = i18n("Connection log for %1").tqarg(date); buffer = "\n"; buffer.append("\n\n "+title+"\n"); - buffer.append(TQString::tqfromLatin1(" ")); + TQString::fromLatin1("\">")); buffer.append("\n\n\n

"+title+"

\n\n"); buffer.append("\n"); diff --git a/kppp/logview/main.cpp b/kppp/logview/main.cpp index 6f87ae21..f034c462 100644 --- a/kppp/logview/main.cpp +++ b/kppp/logview/main.cpp @@ -86,8 +86,8 @@ TopWidget::TopWidget() : KMainWindow(0, "") { kapp, TQT_SLOT(quit())); } - setMinimumSize(mw->tqsizeHint().width() + 15, - mw->tqsizeHint().height() + 120); + setMinimumSize(mw->sizeHint().width() + 15, + mw->sizeHint().height() + 120); setCentralWidget(w); } 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), -- cgit v1.2.1