summaryrefslogtreecommitdiffstats
path: root/src/knutinstcomms.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/knutinstcomms.cpp')
-rwxr-xr-xsrc/knutinstcomms.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/knutinstcomms.cpp b/src/knutinstcomms.cpp
index e21ebfc..bb3ad10 100755
--- a/src/knutinstcomms.cpp
+++ b/src/knutinstcomms.cpp
@@ -23,14 +23,14 @@
#include <kmessagebox.h>
-#include <qlayout.h>
-#include <qframe.h>
-#include <qlabel.h>
-#include <qstring.h>
+#include <tqlayout.h>
+#include <tqframe.h>
+#include <tqlabel.h>
+#include <tqstring.h>
-KNutInstComms::KNutInstComms(QString* userName, QString* userPassword, const QString uName, const QString password, KNutNet* const upsNet, QWidget* parent, const char* name, const bool modal)
-: KDialogBase(Plain, i18n("Instant commands"),Ok|Cancel,Ok, parent, name, modal, true), m_upsNet(upsNet),m_oldUserName(userName), m_oldUserPassword(userPassword) {
+KNutInstComms::KNutInstComms(TQString* userName, TQString* userPassword, const TQString uName, const TQString password, KNutNet* const upsNet, TQWidget* tqparent, const char* name, const bool modal)
+: KDialogBase(Plain, i18n("Instant commands"),Ok|Cancel,Ok, tqparent, name, modal, true), m_upsNet(upsNet),m_oldUserName(userName), m_oldUserPassword(userPassword) {
upsICommDef upsIComm;
@@ -40,18 +40,18 @@ KNutInstComms::KNutInstComms(QString* userName, QString* userPassword, const QSt
}
else {
m_upsConnectOk=true;
- QFrame *page = plainPage();
- QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() );
- QLabel *label1 = new QLabel (i18n("RUN INSTANT COMMAND"),page,"label1");
- label1->setAlignment(Qt::AlignHCenter);
+ TQFrame *page = plainPage();
+ TQVBoxLayout *topLayout = new TQVBoxLayout( page, 0, spacingHint() );
+ TQLabel *label1 = new TQLabel (i18n("RUN INSTANT COMMAND"),page,"label1");
+ label1->tqsetAlignment(TQt::AlignHCenter);
topLayout->addWidget(label1);
- QLabel *label2 = new QLabel (i18n("Command:"),page,"label2");
+ TQLabel *label2 = new TQLabel (i18n("Command:"),page,"label2");
m_instCommBox = new KComboBox(page,"instcommbox");
- QGridLayout *passLayout = new QGridLayout (3,2,5,"passLayout");
- QLabel *labelName = new QLabel (i18n("User name:"),page,"labelName");
- QLabel *labelPassword = new QLabel (i18n("Password:"),page,"labelPassword");
+ TQGridLayout *passLayout = new TQGridLayout (3,2,5,"passLayout");
+ TQLabel *labelName = new TQLabel (i18n("User name:"),page,"labelName");
+ TQLabel *labelPassword = new TQLabel (i18n("Password:"),page,"labelPassword");
m_lineEditName = new KLineEdit( page, "LineEditName" );
m_lineEditPassword = new KLineEdit( page, "LineEditName" );
if (((*m_oldUserName) == "") && ((*m_oldUserPassword) == "")) {
@@ -71,7 +71,7 @@ KNutInstComms::KNutInstComms(QString* userName, QString* userPassword, const QSt
// lineEditPassword->setDisabled(true);
// }
- m_lineEditPassword->setEchoMode(QLineEdit::Password);
+ m_lineEditPassword->setEchoMode(TQLineEdit::Password);
topLayout->addLayout(passLayout);