From ca82971624269719d487c6f7980d7237f9420036 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:45:00 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- noatun-plugins/alarm/kminutespinbox.cpp | 2 +- noatun-plugins/alarm/wakeup.cpp | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'noatun-plugins/alarm') diff --git a/noatun-plugins/alarm/kminutespinbox.cpp b/noatun-plugins/alarm/kminutespinbox.cpp index 862eb0c..72b6d9d 100644 --- a/noatun-plugins/alarm/kminutespinbox.cpp +++ b/noatun-plugins/alarm/kminutespinbox.cpp @@ -33,7 +33,7 @@ KMinuteSpinBox::KMinuteSpinBox(int _step, TQWidget *_parent, const char *_name) TQString KMinuteSpinBox::mapValueToText(int v) { if(v < 10) - return TQString("0%1").tqarg(v); + return TQString("0%1").arg(v); else return TQString::number(v); } diff --git a/noatun-plugins/alarm/wakeup.cpp b/noatun-plugins/alarm/wakeup.cpp index 6f5ff6c..f0602c3 100644 --- a/noatun-plugins/alarm/wakeup.cpp +++ b/noatun-plugins/alarm/wakeup.cpp @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include #include @@ -104,7 +104,7 @@ void Wakeup::slotCheckTime() TQDate d; t=TQTime::currentTime(); - d=TQDate::tqcurrentDate(); + d=TQDate::currentDate(); if (t.minute()!=minute[d.dayOfWeek()-1] || t.hour()!=hour[d.dayOfWeek()-1]) return; @@ -168,8 +168,8 @@ void Wakeup::slotVolumeChange() WakeupPrefs::WakeupPrefs( TQObject *parent ) : CModule( i18n("Wakeup"), i18n("Alarm Configuration"), "date", parent ) { - TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint()); - TQGridLayout *grid = new TQGridLayout (tqlayout,8,4); + TQVBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint()); + TQGridLayout *grid = new TQGridLayout (layout,8,4); monday=new TQCheckBox(i18n("Monday"),this); tuesday=new TQCheckBox(i18n("Tuesday"),this); @@ -209,7 +209,7 @@ WakeupPrefs::WakeupPrefs( TQObject *parent ) : applyall = new TQPushButton (this,"applyall"); applyall->setPixmap( BarIcon("down", KIcon::SizeSmall) ); - applyall->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, + applyall->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed, applyall->sizePolicy().hasHeightForWidth()) ); grid->addWidget (applyall,1,3,TQt::AlignLeft); @@ -248,9 +248,9 @@ WakeupPrefs::WakeupPrefs( TQObject *parent ) : TQLabel *volEndLabel = new TQLabel (i18n("Volume increases to:"), volFrame); volEndValue = new KPercentSpinBox (1 ,volFrame,"volendvalue"); - tqlayout->addWidget(modeGroup); - tqlayout->addWidget(volFrame); - tqlayout->addStretch(); + layout->addWidget(modeGroup); + layout->addWidget(volFrame); + layout->addStretch(); TQHBoxLayout *volLayout = new TQHBoxLayout(volFrame, KDialog::marginHint(), KDialog::spacingHint()); volLayout->addWidget(volEndLabel); -- cgit v1.2.1