summaryrefslogtreecommitdiffstats
path: root/kppp/loginterm.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kppp/loginterm.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kppp/loginterm.cpp')
-rw-r--r--kppp/loginterm.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kppp/loginterm.cpp b/kppp/loginterm.cpp
index a0dbd2e2..2aeed5e4 100644
--- a/kppp/loginterm.cpp
+++ b/kppp/loginterm.cpp
@@ -35,8 +35,8 @@
extern KPPPWidget *p_kppp;
-LoginMultiLineEdit::LoginMultiLineEdit(QWidget *parent, const char *name)
- : QMultiLineEdit(parent, name)
+LoginMultiLineEdit::LoginMultiLineEdit(TQWidget *parent, const char *name)
+ : TQMultiLineEdit(parent, name)
{
}
@@ -47,25 +47,25 @@ LoginMultiLineEdit::~LoginMultiLineEdit() {
void LoginMultiLineEdit::insertChar(unsigned char c) {
- QMultiLineEdit::insert(QChar(c));
+ TQMultiLineEdit::insert(TQChar(c));
p_kppp->debugwindow->addChar(c);
}
void LoginMultiLineEdit::myreturn() {
- QMultiLineEdit::home();
+ TQMultiLineEdit::home();
}
void LoginMultiLineEdit::mynewline() {
- QMultiLineEdit::end(FALSE);
- QMultiLineEdit::newLine();
+ TQMultiLineEdit::end(FALSE);
+ TQMultiLineEdit::newLine();
p_kppp->debugwindow->addChar('\n');
}
-void LoginMultiLineEdit::keyPressEvent(QKeyEvent *k) {
+void LoginMultiLineEdit::keyPressEvent(TQKeyEvent *k) {
unsigned char c = (unsigned char) k->ascii();
if ((int)c == 0) return;
@@ -93,17 +93,17 @@ void LoginMultiLineEdit::readChar(unsigned char c) {
}
-LoginTerm::LoginTerm (QWidget *parent, const char *name)
- : QDialog(parent, name, FALSE)
+LoginTerm::LoginTerm (TQWidget *parent, const char *name)
+ : TQDialog(parent, name, FALSE)
{
setCaption(i18n("Login Terminal Window"));
setMinimumSize(300, 200);
setMaximumSize(600, 400);
resize(400, 300);
- QVBoxLayout *tl = new QVBoxLayout(this, 2);
- QGridLayout *vgr = new QGridLayout(2, 1);
- QGridLayout *hgr = new QGridLayout(1, 2, 30);
+ TQVBoxLayout *tl = new TQVBoxLayout(this, 2);
+ TQGridLayout *vgr = new TQGridLayout(2, 1);
+ TQGridLayout *hgr = new TQGridLayout(1, 2, 30);
tl->addLayout(vgr);
vgr->addLayout(hgr, 1, 0);
@@ -116,11 +116,11 @@ LoginTerm::LoginTerm (QWidget *parent, const char *name)
cancel_b = new KPushButton(KStdGuiItem::cancel(), this, "cancel");
cancel_b->setFixedHeight(25);
- connect(cancel_b, SIGNAL(clicked()), SLOT(cancelbutton()));
+ connect(cancel_b, TQT_SIGNAL(clicked()), TQT_SLOT(cancelbutton()));
continue_b = new KPushButton(KStdGuiItem::cont(), this, "continue");
continue_b->setFixedHeight(25);
- connect(continue_b, SIGNAL(clicked()), SLOT(continuebutton()));
+ connect(continue_b, TQT_SIGNAL(clicked()), TQT_SLOT(continuebutton()));
int mwidth;
if (cancel_b->sizeHint().width() > continue_b->sizeHint().width())
@@ -136,7 +136,7 @@ LoginTerm::LoginTerm (QWidget *parent, const char *name)
cont = false;
- Modem::modem->notify(text_window, SLOT(readChar(unsigned char)));
+ Modem::modem->notify(text_window, TQT_SLOT(readChar(unsigned char)));
}