summaryrefslogtreecommitdiffstats
path: root/kshutdownlockout/lockout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kshutdownlockout/lockout.cpp')
-rw-r--r--kshutdownlockout/lockout.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kshutdownlockout/lockout.cpp b/kshutdownlockout/lockout.cpp
index 6fd7085..af336ea 100644
--- a/kshutdownlockout/lockout.cpp
+++ b/kshutdownlockout/lockout.cpp
@@ -33,9 +33,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "lockout.h"
-#include <qlayout.h>
-#include <qtoolbutton.h>
-#include <qtooltip.h>
+#include <ntqlayout.h>
+#include <ntqtoolbutton.h>
+#include <ntqtooltip.h>
#include <dcopclient.h>
#include <kaction.h>
@@ -57,7 +57,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
extern "C"
{
- KDE_EXPORT KPanelApplet *init(QWidget *parent, const QString& configFile)
+ KDE_EXPORT KPanelApplet *init(TQWidget *parent, const TQString& configFile)
{
// share i18n with KShutDown
KGlobal::locale()->insertCatalogue("kshutdown");
@@ -68,7 +68,7 @@ extern "C"
// public
-Lockout::Lockout(const QString& configFile, QWidget *parent)
+Lockout::Lockout(const TQString& configFile, TQWidget *parent)
: KPanelApplet(
configFile,
KPanelApplet::Normal,
@@ -91,14 +91,14 @@ Lockout::Lockout(const QString& configFile, QWidget *parent)
pm_actions->insertSeparator();
_configureKShutDownAction->plug(pm_actions);
- QVBoxLayout *layout = new QVBoxLayout(this);
- QToolButton *button = new QToolButton(this);
+ TQVBoxLayout *layout = new TQVBoxLayout(this);
+ TQToolButton *button = new TQToolButton(this);
button->setAutoRaise(true);
button->setBackgroundMode(X11ParentRelative);
button->setPixmap(SmallIcon("exit"));
button->setPopupDelay(100);
button->setMinimumSize(button->pixmap()->size());
- button->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));
+ button->setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding));
connect(button, SIGNAL(clicked()), this, SLOT(slotShowKShutDown()));
button->setPopup(pm_actions);
@@ -113,7 +113,7 @@ Lockout::Lockout(const QString& configFile, QWidget *parent)
kapp->dcopClient()->attach();
connect(kapp, SIGNAL(iconChanged(int)), SLOT(slotIconChanged()));
- QToolTip::add(
+ TQToolTip::add(
this,
"<qt>" \
"<b>KShutDown</b><br><br>" +
@@ -139,7 +139,7 @@ int Lockout::widthForHeight(int/* height*/) const
// private
-void Lockout::callKShutDown(const QCString &function) {
+void Lockout::callKShutDown(const TQCString &function) {
DCOPClient *client = kapp->dcopClient();
if (!client->isApplicationRegistered("kshutdown")) {
// run KShutDown
@@ -194,7 +194,7 @@ void Lockout::initActions() {
);
}
-void Lockout::runCommand(const QString &command) {
+void Lockout::runCommand(const TQString &command) {
pid_t pid = KRun::run(command, KURL::List());
if (!pid)
KMessageBox::error(0, i18n("Could not run KShutDown!"));