diff options
Diffstat (limited to 'ksysv/RunlevelAuthIcon.cpp')
-rw-r--r-- | ksysv/RunlevelAuthIcon.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/ksysv/RunlevelAuthIcon.cpp b/ksysv/RunlevelAuthIcon.cpp index e086df1..bac5b30 100644 --- a/ksysv/RunlevelAuthIcon.cpp +++ b/ksysv/RunlevelAuthIcon.cpp @@ -1,9 +1,9 @@ // (c) 2000 Peter Putzer <putzer@kde.org> -#include <qtimer.h> -#include <qfileinfo.h> -#include <qlayout.h> -#include <qtooltip.h> +#include <tqtimer.h> +#include <tqfileinfo.h> +#include <tqlayout.h> +#include <tqtooltip.h> #include <kdebug.h> #include <kiconloader.h> @@ -12,14 +12,14 @@ #include "ksv_core.h" #include "RunlevelAuthIcon.h" -#include <qlabel.h> +#include <tqlabel.h> -RunlevelAuthIcon::RunlevelAuthIcon (const QString& servicesPath, const QString& runlevelPath, - QWidget* parent, const char* name) +RunlevelAuthIcon::RunlevelAuthIcon (const TQString& servicesPath, const TQString& runlevelPath, + TQWidget* parent, const char* name) : KAuthIcon (parent, name), - mTimer (new QTimer (this)), - mServicesInfo (new QFileInfo (servicesPath)), - mRLInfo (new QFileInfo* [ksv::runlevelNumber]), + mTimer (new TQTimer (this)), + mServicesInfo (new TQFileInfo (servicesPath)), + mRLInfo (new TQFileInfo* [ksv::runlevelNumber]), mOld (false), mInterval (1000), mCheckEnabled(false) @@ -36,15 +36,15 @@ RunlevelAuthIcon::RunlevelAuthIcon (const QString& servicesPath, const QString& lockBox->setPixmap (lockPM); lockBox->setMargin (1); - lockBox->setFrameStyle (QFrame::NoFrame); + lockBox->setFrameStyle (TQFrame::NoFrame); lockBox->setFixedSize (lockBox->sizeHint()); - connect (mTimer, SIGNAL (timeout()), this, SLOT (timerEvent())); + connect (mTimer, TQT_SIGNAL (timeout()), this, TQT_SLOT (timerEvent())); mTimer->start (mInterval); for (int i = 0; i < ksv::runlevelNumber; ++i) { - mRLInfo[i] = new QFileInfo ((runlevelPath + "/rc%1.d").arg(i)); + mRLInfo[i] = new TQFileInfo ((runlevelPath + "/rc%1.d").arg(i)); } updateStatus(); @@ -75,8 +75,8 @@ void RunlevelAuthIcon::updateStatus () lockBox->setPixmap (res ? openLockPM : lockPM); lockLabel->setText (res ? openLockText : lockText); - QToolTip::remove (this); - QToolTip::add (this, lockLabel->text()); + TQToolTip::remove (this); + TQToolTip::add (this, lockLabel->text()); mOld = res; emit authChanged (res); @@ -107,7 +107,7 @@ void RunlevelAuthIcon::timerEvent () updateStatus(); } -void RunlevelAuthIcon::setServicesPath (const QString& path) +void RunlevelAuthIcon::setServicesPath (const TQString& path) { mTimer->stop(); @@ -116,7 +116,7 @@ void RunlevelAuthIcon::setServicesPath (const QString& path) mTimer->start(mInterval); } -void RunlevelAuthIcon::setRunlevelPath (const QString& path) +void RunlevelAuthIcon::setRunlevelPath (const TQString& path) { mTimer->stop(); |