diff options
Diffstat (limited to 'kshutdown/systemconfig.cpp')
-rw-r--r-- | kshutdown/systemconfig.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kshutdown/systemconfig.cpp b/kshutdown/systemconfig.cpp index 6b919e0..4a1ff78 100644 --- a/kshutdown/systemconfig.cpp +++ b/kshutdown/systemconfig.cpp @@ -22,8 +22,8 @@ #include "miscutils.h" #include "systemconfig.h" -#include <qfileinfo.h> -#include <qheader.h> +#include <ntqfileinfo.h> +#include <ntqheader.h> #include <kapplication.h> #include <kiconloader.h> @@ -44,7 +44,7 @@ bool SystemConfig::canShutDown() /* if (_canShutDown == -1) { - QCString XDM_MANAGED = ::getenv("XDM_MANAGED"); + TQCString XDM_MANAGED = ::getenv("XDM_MANAGED"); if (XDM_MANAGED.contains("maysd") || XDM_MANAGED.contains("classic")) _canShutDown = 1; @@ -57,7 +57,7 @@ bool SystemConfig::canShutDown() return _canShutDown == 1; } -void SystemConfig::check(QWidget *parent) +void SystemConfig::check(TQWidget *parent) { SystemConfig *systemConfig = new SystemConfig(parent); systemConfig->exec(); @@ -66,7 +66,7 @@ void SystemConfig::check(QWidget *parent) // private -SystemConfig::SystemConfig(QWidget *parent) +SystemConfig::SystemConfig(TQWidget *parent) : KDialogBase( parent, "SystemConfig", // name @@ -84,8 +84,8 @@ SystemConfig::SystemConfig(QWidget *parent) _messages->addColumn(""); _messages->addColumn(i18n("Message")); _messages->header()->setClickEnabled(false); - connect(_messages, SIGNAL(executed(QListViewItem *)), SLOT(slotExecuted(QListViewItem *))); - connect(_messages, SIGNAL(spacePressed(QListViewItem *)), SLOT(slotExecuted(QListViewItem *))); + connect(_messages, SIGNAL(executed(TQListViewItem *)), SLOT(slotExecuted(TQListViewItem *))); + connect(_messages, SIGNAL(spacePressed(TQListViewItem *)), SLOT(slotExecuted(TQListViewItem *))); setMainWidget(_messages); _shutdownAllowItem = add(Info, i18n("Tip: Click here if you have problem with the \"/sbin/shutdown\" command.")); @@ -100,7 +100,7 @@ SystemConfig::SystemConfig(QWidget *parent) add(OK, i18n("No problems were found.")); } -KListViewItem *SystemConfig::add(const Type type, const QString &message) +KListViewItem *SystemConfig::add(const Type type, const TQString &message) { KListViewItem *item = new KListViewItem(_messages); item->setMultiLinesEnabled(true); @@ -122,9 +122,9 @@ KListViewItem *SystemConfig::add(const Type type, const QString &message) return item; } -void SystemConfig::checkFile(const QString &file) +void SystemConfig::checkFile(const TQString &file) { - QFileInfo program(file); + TQFileInfo program(file); if (!program.exists()) { @@ -141,7 +141,7 @@ void SystemConfig::checkFile(const QString &file) void SystemConfig::checkKDE() { - QCString KDE_FULL_SESSION = ::getenv("KDE_FULL_SESSION"); + TQCString KDE_FULL_SESSION = ::getenv("KDE_FULL_SESSION"); if (KDE_FULL_SESSION != "true") { add(Warning, i18n("It seems that this is not a KDE full session.\nKShutDown was designed to work with KDE.\nHowever, you can customize Actions in the KShutDown settings dialog\n(Settings -> Configure KShutDown... -> Actions).")); @@ -168,7 +168,7 @@ void SystemConfig::checkKDM() // private slots -void SystemConfig::slotExecuted(QListViewItem *item) +void SystemConfig::slotExecuted(TQListViewItem *item) { if (!item) return; |