summaryrefslogtreecommitdiffstats
path: root/ksysv/RunlevelAuthIcon.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
commitaa3a1ca934bc541bddd3fa136a85f106f7da266e (patch)
tree9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /ksysv/RunlevelAuthIcon.cpp
parentb10cf7066791a2f362495890cd50c984e8025412 (diff)
downloadtdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz
tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksysv/RunlevelAuthIcon.cpp')
-rw-r--r--ksysv/RunlevelAuthIcon.cpp34
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();