summaryrefslogtreecommitdiffstats
path: root/kppp/modeminfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kppp/modeminfo.cpp')
-rw-r--r--kppp/modeminfo.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/kppp/modeminfo.cpp b/kppp/modeminfo.cpp
index bf7ed8dd..9e6668d8 100644
--- a/kppp/modeminfo.cpp
+++ b/kppp/modeminfo.cpp
@@ -25,8 +25,8 @@
*/
#include <unistd.h>
-#include <qregexp.h>
-#include <qlayout.h>
+#include <tqregexp.h>
+#include <tqlayout.h>
#include <kwin.h>
#include <kmessagebox.h>
#include <kapplication.h>
@@ -35,19 +35,19 @@
#include "modem.h"
#include <klocale.h>
-ModemTransfer::ModemTransfer(QWidget *parent, const char *name)
- : QDialog(parent, name,TRUE, WStyle_Customize|WStyle_NormalBorder)
+ModemTransfer::ModemTransfer(TQWidget *parent, const char *name)
+ : TQDialog(parent, name,TRUE, WStyle_Customize|WStyle_NormalBorder)
{
setCaption(i18n("ATI Query"));
KWin::setIcons(winId(), kapp->icon(), kapp->miniIcon());
- QVBoxLayout *tl = new QVBoxLayout(this, 10, 10);
+ TQVBoxLayout *tl = new TQVBoxLayout(this, 10, 10);
progressBar = new KProgress(this, "bar");
progressBar->setTotalSteps(8);
- statusBar = new QLabel(this,"sBar");
- statusBar->setFrameStyle(QFrame::Panel|QFrame::Sunken);
+ statusBar = new TQLabel(this,"sBar");
+ statusBar->setFrameStyle(TQFrame::Panel|TQFrame::Sunken);
statusBar->setAlignment(AlignCenter);
// This is a rather complicated case. Since we do not know which
@@ -67,9 +67,9 @@ ModemTransfer::ModemTransfer(QWidget *parent, const char *name)
cancel = new KPushButton(KStdGuiItem::cancel(), this);
cancel->setFocus();
- connect(cancel, SIGNAL(clicked()), SLOT(cancelbutton()));
+ connect(cancel, TQT_SIGNAL(clicked()), TQT_SLOT(cancelbutton()));
- QHBoxLayout *l1 = new QHBoxLayout;
+ TQHBoxLayout *l1 = new QHBoxLayout;
tl->addLayout(l1);
l1->addStretch(1);
l1->addWidget(cancel);
@@ -80,14 +80,14 @@ ModemTransfer::ModemTransfer(QWidget *parent, const char *name)
////////////////////////////////////////////////
- timeout_timer = new QTimer(this);
- connect(timeout_timer, SIGNAL(timeout()), SLOT(time_out_slot()));
+ timeout_timer = new TQTimer(this);
+ connect(timeout_timer, TQT_SIGNAL(timeout()), TQT_SLOT(time_out_slot()));
- scripttimer = new QTimer(this);
- connect(scripttimer, SIGNAL(timeout()), SLOT(do_script()));
+ scripttimer = new TQTimer(this);
+ connect(scripttimer, TQT_SIGNAL(timeout()), TQT_SLOT(do_script()));
timeout_timer->start(15000,TRUE); // 15 secs single shot
- QTimer::singleShot(500, this, SLOT(init()));
+ TQTimer::singleShot(500, this, TQT_SLOT(init()));
}
@@ -151,7 +151,7 @@ void ModemTransfer::init() {
// clear modem buffer
Modem::modem->flush();
- Modem::modem->notify(this, SLOT(readChar(unsigned char)));
+ Modem::modem->notify(this, TQT_SLOT(readChar(unsigned char)));
return;
}
}
@@ -164,8 +164,8 @@ void ModemTransfer::init() {
void ModemTransfer::do_script() {
- QString msg;
- QString query;
+ TQString msg;
+ TQString query;
switch(step) {
case 0:
@@ -207,7 +207,7 @@ void ModemTransfer::readtty() {
if (step == 0)
return;
- readbuffer.replace(QRegExp("[\n\r]")," "); // remove stray \n and \r
+ readbuffer.replace(TQRegExp("[\n\r]")," "); // remove stray \n and \r
readbuffer = readbuffer.stripWhiteSpace(); // strip of leading or trailing white
// space
@@ -234,23 +234,23 @@ void ModemTransfer::cancelbutton() {
}
-void ModemTransfer::closeEvent( QCloseEvent *e ) {
+void ModemTransfer::closeEvent( TQCloseEvent *e ) {
cancelbutton();
e->accept();
}
-ModemInfo::ModemInfo(QWidget *parent, const char* name)
- : QDialog(parent, name, TRUE, WStyle_Customize|WStyle_NormalBorder)
+ModemInfo::ModemInfo(TQWidget *parent, const char* name)
+ : TQDialog(parent, name, TRUE, WStyle_Customize|WStyle_NormalBorder)
{
- QString label_text;
+ TQString label_text;
setCaption(i18n("Modem Query Results"));
KWin::setIcons(winId(), kapp->icon(), kapp->miniIcon());
- QVBoxLayout *tl = new QVBoxLayout(this, 10, 10);
+ TQVBoxLayout *tl = new TQVBoxLayout(this, 10, 10);
- QGridLayout *l1 = new QGridLayout(NUM_OF_ATI, 2, 5);
+ TQGridLayout *l1 = new TQGridLayout(NUM_OF_ATI, 2, 5);
tl->addLayout(l1, 1);
for(int i = 0 ; i < NUM_OF_ATI ; i++) {
@@ -260,31 +260,31 @@ ModemInfo::ModemInfo(QWidget *parent, const char* name)
else
label_text.sprintf("ATI %d:", i );
- ati_label[i] = new QLabel(label_text, this);
+ ati_label[i] = new TQLabel(label_text, this);
l1->addWidget(ati_label[i], i, 0);
- ati_label_result[i] = new QLineEdit(this);
+ ati_label_result[i] = new TQLineEdit(this);
ati_label_result[i]->setMinimumWidth(fontMetrics().width('H') * 24);
l1->addWidget(ati_label_result[i], i, 1);
}
//tl->addSpacing(1);
- QHBoxLayout *l2 = new QHBoxLayout;
- QPushButton *ok = new KPushButton(KStdGuiItem::close(), this);
+ TQHBoxLayout *l2 = new QHBoxLayout;
+ TQPushButton *ok = new KPushButton(KStdGuiItem::close(), this);
ok->setDefault(TRUE);
ok->setFocus();
tl->addLayout(l2);
l2->addStretch(1);
- connect(ok, SIGNAL(clicked()), SLOT(accept()));
+ connect(ok, TQT_SIGNAL(clicked()), TQT_SLOT(accept()));
l2->addWidget(ok);
setMinimumSize(sizeHint());
}
-void ModemInfo::setAtiString(int i, QString s) {
+void ModemInfo::setAtiString(int i, TQString s) {
if(i < NUM_OF_ATI)
ati_label_result[i]->setText(s);
}