diff options
Diffstat (limited to 'kppp')
42 files changed, 264 insertions, 264 deletions
diff --git a/kppp/accounting.cpp b/kppp/accounting.cpp index 76c5f02e..2d7ab5d7 100644 --- a/kppp/accounting.cpp +++ b/kppp/accounting.cpp @@ -72,10 +72,10 @@ AccountingBase::AccountingBase(TQObject *parent) : _total(0), _session(0) { - TQDate dt = TQDate::currentDate(); + TQDate dt = TQDate::tqcurrentDate(); LogFileName = TQString("%1-%2.log") - .arg(TQDate::shortMonthName(dt.month())) - .arg(dt.year(), 4); + .tqarg(TQDate::shortMonthName(dt.month())) + .tqarg(dt.year(), 4); LogFileName = KGlobal::dirs()->saveLocation("appdata", "Log") + "/" + LogFileName; @@ -233,7 +233,7 @@ void Accounting::timerEvent(TQTimerEvent *t) { double newLen; double connect_time = difftime(time(0), start_time); - rules.getActiveRule(TQDateTime::currentDateTime(), connect_time, newCosts, newLen); + rules.getActiveRule(TQDateTime::tqcurrentDateTime(), connect_time, newCosts, newLen); if(newLen < 1) { // changed to < 1 slotStop(); return; // no default rule found @@ -279,7 +279,7 @@ void Accounting::slotStart() { _lastcosts = 0.0; _lastlen = 0.0; _session = rules.perConnectionCosts(); - rules.setStartTime(TQDateTime::currentDateTime()); + rules.setStartTime(TQDateTime::tqcurrentDateTime()); acct_timer_id = startTimer(1); if(UPDATE_TIME > 0) update_timer_id = startTimer(UPDATE_TIME); diff --git a/kppp/accounts.cpp b/kppp/accounts.cpp index 66fac600..450e2a1b 100644 --- a/kppp/accounts.cpp +++ b/kppp/accounts.cpp @@ -26,7 +26,7 @@ #include <tqdir.h> #include <stdlib.h> -#include <layout.h> +#include <tqlayout.h> #include <tqtabdialog.h> #include <tqwhatsthis.h> #include <tqmessagebox.h> @@ -75,7 +75,7 @@ AccountWidget::AccountWidget( TQWidget *parent, const char *name ) connect(edit_b, TQT_SIGNAL(clicked()), TQT_SLOT(editaccount())); TQWhatsThis::add(edit_b, i18n("Allows you to modify the selected account")); - min = edit_b->sizeHint().width(); + min = edit_b->tqsizeHint().width(); min = TQMAX(70,min); edit_b->setMinimumWidth(min); @@ -116,7 +116,7 @@ AccountWidget::AccountWidget( TQWidget *parent, const char *name ) costedit = new TQLineEdit(parent); costedit->setFocusPolicy(TQ_NoFocus); - costedit->setFixedHeight(costedit->sizeHint().height()); + costedit->setFixedHeight(costedit->tqsizeHint().height()); costedit->setEnabled(FALSE); l121->addWidget(costedit); l121->addStretch(1); @@ -135,7 +135,7 @@ AccountWidget::AccountWidget( TQWidget *parent, const char *name ) voledit = new TQLineEdit(parent,"voledit"); voledit->setFocusPolicy(TQ_NoFocus); - voledit->setFixedHeight(voledit->sizeHint().height()); + voledit->setFixedHeight(voledit->tqsizeHint().height()); voledit->setEnabled(FALSE); l121->addWidget(voledit); tmp = i18n("<p>This shows the number of bytes transferred\n" @@ -324,7 +324,7 @@ void AccountWidget::copyaccount() { void AccountWidget::deleteaccount() { TQString s = i18n("Are you sure you want to delete\nthe account \"%1\"?") - .arg(accountlist_l->text(accountlist_l->currentItem())); + .tqarg(accountlist_l->text(accountlist_l->currentItem())); if(KMessageBox::warningYesNo(this, s, i18n("Confirm"), KGuiItem(i18n("Delete"), "editdelete"), KStdGuiItem::cancel()) != KMessageBox::Yes) return; @@ -450,7 +450,7 @@ QueryReset::QueryReset(TQWidget *parent) : TQDialog(parent, 0, true) { l1->activate(); - // this activates the f-layout and sets minimumSize() + // this activates the f-tqlayout and sets tqminimumSize() f->show(); tl->addWidget(f); @@ -466,11 +466,11 @@ QueryReset::QueryReset(TQWidget *parent) : TQDialog(parent, 0, true) { connect(cancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); - bbox->layout(); + bbox->tqlayout(); tl->addWidget(bbox); // TODO: activate if KGroupBox is fixed - // setFixedSize(sizeHint()); + // setFixedSize(tqsizeHint()); } diff --git a/kppp/acctselect.cpp b/kppp/acctselect.cpp index 6b724b16..121713c5 100644 --- a/kppp/acctselect.cpp +++ b/kppp/acctselect.cpp @@ -36,7 +36,7 @@ #include <tqcombobox.h> #include <tqlabel.h> #include <kurllabel.h> -#include <layout.h> +#include <tqlayout.h> #include <tqlistview.h> #include <tqdir.h> #include <tqregexp.h> @@ -85,7 +85,7 @@ AccountingSelector::AccountingSelector(TQWidget *parent, bool _isnewaccount, con selected = new TQLabel(parent); selected->setFrameStyle(TQFrame::Sunken | TQFrame::WinPanel); selected->setLineWidth(1); - selected->setFixedHeight(selected->sizeHint().height() + 16); + selected->setFixedHeight(selected->tqsizeHint().height() + 16); l11->addWidget(lsel, 0); l11->addSpacing(10); l11->addWidget(selected, 1); diff --git a/kppp/connect.cpp b/kppp/connect.cpp index 38630928..ea755a3e 100644 --- a/kppp/connect.cpp +++ b/kppp/connect.cpp @@ -26,7 +26,7 @@ #include <config.h> -#include <layout.h> +#include <tqlayout.h> #include <tqregexp.h> #include <kapplication.h> @@ -109,10 +109,10 @@ ConnectWidget::ConnectWidget(TQWidget *parent, const char *name, PPPStats *st) l0->addSpacing(10); messg = new TQLabel(this, "messg"); messg->setFrameStyle(TQFrame::Panel|TQFrame::Sunken); - messg->setAlignment(AlignCenter); + messg->tqsetAlignment(AlignCenter); messg->setText(i18n("Unable to create modem lock file.")); - messg->setMinimumHeight(messg->sizeHint().height() + 5); - int messw = (messg->sizeHint().width() * 12) / 10; + messg->setMinimumHeight(messg->tqsizeHint().height() + 5); + int messw = (messg->tqsizeHint().width() * 12) / 10; messw = TQMAX(messw,280); messg->setMinimumWidth(messw); messg->setText(i18n("Looking for modem...")); @@ -131,8 +131,8 @@ ConnectWidget::ConnectWidget(TQWidget *parent, const char *name, PPPStats *st) cancel->setFocus(); connect(cancel, TQT_SIGNAL(clicked()), TQT_SLOT(cancelbutton())); - int maxw = TQMAX(cancel->sizeHint().width(), - debug->sizeHint().width()); + int maxw = TQMAX(cancel->tqsizeHint().width(), + debug->tqsizeHint().width()); maxw = TQMAX(maxw,65); debug->setFixedWidth(maxw); cancel->setFixedWidth(maxw); @@ -140,7 +140,7 @@ ConnectWidget::ConnectWidget(TQWidget *parent, const char *name, PPPStats *st) l1->addWidget(cancel); l1->addSpacing(10); - setFixedSize(sizeHint()); + setFixedSize(tqsizeHint()); pausetimer = new TQTimer(this); connect(pausetimer, TQT_SIGNAL(timeout()), TQT_SLOT(pause())); @@ -210,7 +210,7 @@ void ConnectWidget::init() { comlist = &gpppdata.scriptType(); arglist = &gpppdata.script(); - TQString tit = i18n("Connecting to: %1").arg(gpppdata.accname()); + TQString tit = i18n("Connecting to: %1").tqarg(gpppdata.accname()); setCaption(tit); kapp->processEvents(); @@ -398,7 +398,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { TQStringList &plist = gpppdata.phonenumbers(); TQString bmarg= gpppdata.dialPrefix(); bmarg += *plist.at(dialnumber); - TQString bm = i18n("Dialing %1").arg(bmarg); + TQString bm = i18n("Dialing %1").tqarg(bmarg); messg->setText(bm); emit debugMessage(bm); @@ -434,7 +434,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { Modem::modem->hangup(); if(gpppdata.busyWait() > 0) { - TQString bm = i18n("Line busy. Waiting: %1 seconds").arg(gpppdata.busyWait()); + TQString bm = i18n("Line busy. Waiting: %1 seconds").tqarg(gpppdata.busyWait()); messg->setText(bm); emit debugMessage(bm); @@ -467,7 +467,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { timeout_timer->start(gpppdata.modemTimeout()*1000); if(gpppdata.busyWait() > 0) { - TQString bm = i18n("No carrier. Waiting: %1 seconds").arg(gpppdata.busyWait()); + TQString bm = i18n("No carrier. Waiting: %1 seconds").tqarg(gpppdata.busyWait()); messg->setText(bm); emit debugMessage(bm); @@ -553,7 +553,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { } if (scriptCommand == "Scan") { - TQString bm = i18n("Scanning %1").arg(scriptArgument); + TQString bm = i18n("Scanning %1").tqarg(scriptArgument); messg->setText(bm); emit debugMessage(bm); @@ -563,7 +563,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { } if (scriptCommand == "Save") { - TQString bm = i18n("Saving %1").arg(scriptArgument); + TQString bm = i18n("Saving %1").tqarg(scriptArgument); messg->setText(bm); emit debugMessage(bm); @@ -591,10 +591,10 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { arg = arg.replace(re2, gpppdata.storedPassword()); if (scriptCommand == "Send") - bm = bm.arg(scriptArgument); + bm = bm.tqarg(scriptArgument); else { for(uint i = 0; i < scriptArgument.length(); i++) - bm = bm.arg("*"); + bm = bm.tqarg("*"); } messg->setText(bm); @@ -606,7 +606,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { } if (scriptCommand == "Expect") { - TQString bm = i18n("Expecting %1").arg(scriptArgument); + TQString bm = i18n("Expecting %1").tqarg(scriptArgument); messg->setText(bm); emit debugMessage(bm); @@ -620,7 +620,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { if (scriptCommand == "Pause") { - TQString bm = i18n("Pause %1 seconds").arg(scriptArgument); + TQString bm = i18n("Pause %1 seconds").tqarg(scriptArgument); messg->setText(bm); emit debugMessage(bm); @@ -637,7 +637,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { timeout_timer->stop(); - TQString bm = i18n("Timeout %1 seconds").arg(scriptArgument); + TQString bm = i18n("Timeout %1 seconds").tqarg(scriptArgument); messg->setText(bm); emit debugMessage(bm); @@ -672,7 +672,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { } if (scriptCommand == "ID") { - TQString bm = i18n("ID %1").arg(scriptArgument); + TQString bm = i18n("ID %1").tqarg(scriptArgument); messg->setText(bm); emit debugMessage(bm); @@ -708,7 +708,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { } if (scriptCommand == "Password") { - TQString bm = i18n("Password %1").arg(scriptArgument); + TQString bm = i18n("Password %1").tqarg(scriptArgument); messg->setText(bm); emit debugMessage(bm); @@ -758,7 +758,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { ts.insert( vstart, scanvar ); } - bm = bm.arg(ts); + bm = bm.tqarg(ts); messg->setText(bm); emit debugMessage(bm); @@ -782,7 +782,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { } if (scriptCommand == "PWPrompt") { - TQString bm = i18n("PW Prompt %1").arg(scriptArgument); + TQString bm = i18n("PW Prompt %1").tqarg(scriptArgument); messg->setText(bm); emit debugMessage(bm); @@ -807,7 +807,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { if (scriptCommand == "LoopStart") { - TQString bm = i18n("Loop Start %1").arg(scriptArgument); + TQString bm = i18n("Loop Start %1").tqarg(scriptArgument); // The incrementing of the scriptindex MUST be before the // call to setExpect otherwise the expect will miss a string that is @@ -832,9 +832,9 @@ void ConnectWidget::timerEvent(TQTimerEvent *) { } if (scriptCommand == "LoopEnd") { - TQString bm = i18n("Loop End %1").arg(scriptArgument); + TQString bm = i18n("Loop End %1").tqarg(scriptArgument); if ( loopnest <= 0 ) { - bm = i18n("LoopEnd without matching Start. Line: %1").arg(bm); + bm = i18n("LoopEnd without matching Start. Line: %1").tqarg(bm); vmain=20; cancelbutton(); KMessageBox::error(0, bm); @@ -1003,7 +1003,7 @@ void ConnectWidget::checkBuffers() { scanvar = scanvar.stripWhiteSpace(); // Show the Variabel content in the debug window - TQString sv = i18n("Scan Var: %1").arg(scanvar); + TQString sv = i18n("Scan Var: %1").tqarg(scanvar); emit debugMessage(sv); } @@ -1013,7 +1013,7 @@ void ConnectWidget::checkBuffers() { // keep everything after the expected string readbuffer.remove(0, readbuffer.find(expectstr) + expectstr.length()); - TQString ts = i18n("Found: %1").arg(expectstr); + TQString ts = i18n("Found: %1").tqarg(expectstr); emit debugMessage(ts); if (loopend) { @@ -1024,7 +1024,7 @@ void ConnectWidget::checkBuffers() { if (loopend && readbuffer.contains(loopstr[loopnest])) { expecting = false; readbuffer = ""; - TQString ts = i18n("Looping: %1").arg(loopstr[loopnest]); + TQString ts = i18n("Looping: %1").tqarg(loopstr[loopnest]); emit debugMessage(ts); scriptindex = loopstartindex[loopnest]; loopend = false; @@ -1117,7 +1117,7 @@ void ConnectWidget::setScan(const TQString &n) { scanstr = n; scanbuffer = ""; - TQString ts = i18n("Scanning: %1").arg(n); + TQString ts = i18n("Scanning: %1").tqarg(n); emit debugMessage(ts); } @@ -1126,7 +1126,7 @@ void ConnectWidget::setExpect(const TQString &n) { expecting = true; expectstr = n; - TQString ts = i18n("Expecting: %1").arg(n); + TQString ts = i18n("Expecting: %1").tqarg(n); ts.replace(TQRegExp("\n"), "<LF>"); emit debugMessage(ts); diff --git a/kppp/conwindow.cpp b/kppp/conwindow.cpp index 2e6f2281..14154e69 100644 --- a/kppp/conwindow.cpp +++ b/kppp/conwindow.cpp @@ -118,11 +118,11 @@ void ConWindow::accounting(bool on) { accountingEnabled = on; volumeAccountingEnabled = gpppdata.VolAcctEnabled(); - // delete old layout + // delete old tqlayout if(tl1 != 0) delete tl1; - // add layout now + // add tqlayout now tl1 = new TQVBoxLayout(this, 10, 10); tl1->addSpacing(5); TQHBoxLayout *tl = new TQHBoxLayout; @@ -142,11 +142,11 @@ void ConWindow::accounting(bool on) { l1->setColStretch(0, 0); l1->setColStretch(1, 1); - info2->setAlignment(AlignRight|AlignVCenter); - timelabel2->setAlignment(AlignRight|AlignVCenter); - session_bill->setAlignment(AlignRight|AlignVCenter); - total_bill->setAlignment(AlignRight|AlignVCenter); - volinfo->setAlignment(AlignRight|AlignVCenter); + info2->tqsetAlignment(AlignRight|AlignVCenter); + timelabel2->tqsetAlignment(AlignRight|AlignVCenter); + session_bill->tqsetAlignment(AlignRight|AlignVCenter); + total_bill->tqsetAlignment(AlignRight|AlignVCenter); + volinfo->tqsetAlignment(AlignRight|AlignVCenter); // make sure that there's enough space for the bills TQString s1 = session_bill->text(); TQString s2 = total_bill->text(); @@ -155,9 +155,9 @@ void ConWindow::accounting(bool on) { session_bill->setText("888888.88 XXX"); total_bill->setText("888888.88 XXX"); volinfo->setText("8888.8 MB"); - session_bill->setFixedSize(session_bill->sizeHint()); - total_bill->setFixedSize(total_bill->sizeHint()); - volinfo->setFixedSize(volinfo->sizeHint()); + session_bill->setFixedSize(session_bill->tqsizeHint()); + total_bill->setFixedSize(total_bill->tqsizeHint()); + volinfo->setFixedSize(volinfo->tqsizeHint()); session_bill->setText(s1); total_bill->setText(s2); volinfo->setText(s3); @@ -214,7 +214,7 @@ void ConWindow::accounting(bool on) { tl1->addSpacing(5); - setFixedSize(sizeHint()); + setFixedSize(tqsizeHint()); /* do not overwrite position read from config // If this gets re-enabled, fix it for Xinerama before committing to CVS. @@ -264,12 +264,12 @@ void ConWindow::timeclick() { TQString tooltip = i18n("Connection: %1\n" "Connected at: %2\n" "Time connected: %3") - .arg(gpppdata.accname()).arg(info2->text()) - .arg(time_string2); + .tqarg(gpppdata.accname()).tqarg(info2->text()) + .tqarg(time_string2); if(accountingEnabled) tooltip += i18n("\nSession Bill: %1\nTotal Bill: %2") - .arg(session_bill->text()).arg(total_bill->text()); + .tqarg(session_bill->text()).tqarg(total_bill->text()); // volume accounting if(volumeAccountingEnabled) { diff --git a/kppp/conwindow.h b/kppp/conwindow.h index c2948a3b..a1d13f09 100644 --- a/kppp/conwindow.h +++ b/kppp/conwindow.h @@ -32,7 +32,7 @@ #include <tqdialog.h> #include <tqframe.h> #include <tqevent.h> -#include <layout.h> +#include <tqlayout.h> class PPPStats; diff --git a/kppp/debug.cpp b/kppp/debug.cpp index 3dee5797..9b220c20 100644 --- a/kppp/debug.cpp +++ b/kppp/debug.cpp @@ -57,7 +57,7 @@ DebugWidget::DebugWidget(TQWidget *parent, const char *name) statuslabel = new TQLabel("", this, "statuslabel"); statuslabel->setFrameStyle( TQFrame::Panel | TQFrame::Sunken ); - statuslabel->setAlignment( AlignLeft|AlignVCenter ); + statuslabel->tqsetAlignment( AlignLeft|AlignVCenter ); statuslabel->setGeometry(2, 307, 400, 20); //statusPageLabel->setFont( KGlobalSettings::generalFont() ); diff --git a/kppp/edit.cpp b/kppp/edit.cpp index 96f36d90..39f88097 100644 --- a/kppp/edit.cpp +++ b/kppp/edit.cpp @@ -25,7 +25,7 @@ #include <string.h> #include <termios.h> -#include <layout.h> +#include <tqlayout.h> #include <kmessagebox.h> #include <tqwhatsthis.h> #include <tqregexp.h> @@ -66,7 +66,7 @@ DialWidget::DialWidget( TQWidget *parent, bool isnewaccount, const char *name ) number_label = new TQLabel(i18n("P&hone number:"), parent); - number_label->setAlignment(AlignTop|AlignLeft); + number_label->tqsetAlignment(AlignTop|AlignLeft); tl->addWidget(number_label, 1, 0); TQHBoxLayout *lpn = new TQHBoxLayout(5); @@ -324,7 +324,7 @@ i18n("Here you can select commands to run at certain stages of the\n" "(unless, of course, you are root).\n\n" "Be sure to supply the whole path to the program otherwise\n" "kppp might be unable to find it."), parent); - l->setMinimumHeight(l->sizeHint().height()); + l->setMinimumHeight(l->tqsizeHint().height()); tl->addWidget(l); tl->addStretch(1); @@ -334,7 +334,7 @@ i18n("Here you can select commands to run at certain stages of the\n" l1->setColStretch(1, 1); before_connect_l = new TQLabel(i18n("&Before connect:"), parent); - before_connect_l->setAlignment(AlignVCenter); + before_connect_l->tqsetAlignment(AlignVCenter); l1->addWidget(before_connect_l, 0, 0); before_connect = new TQLineEdit(parent); before_connect_l->setBuddy(before_connect); @@ -350,7 +350,7 @@ i18n("Here you can select commands to run at certain stages of the\n" TQWhatsThis::add(before_connect,tmp); command_label = new TQLabel(i18n("&Upon connect:"), parent); - command_label->setAlignment(AlignVCenter); + command_label->tqsetAlignment(AlignVCenter); l1->addWidget(command_label, 1, 0); command = new TQLineEdit(parent); command_label->setBuddy(command); @@ -367,7 +367,7 @@ i18n("Here you can select commands to run at certain stages of the\n" predisconnect_label = new TQLabel(i18n("Before &disconnect:"), parent); - predisconnect_label->setAlignment(AlignVCenter); + predisconnect_label->tqsetAlignment(AlignVCenter); l1->addWidget(predisconnect_label, 2, 0); predisconnect = new TQLineEdit(parent); predisconnect_label->setBuddy(predisconnect); @@ -382,7 +382,7 @@ i18n("Here you can select commands to run at certain stages of the\n" discommand_label = new TQLabel(i18n("U&pon disconnect:"), parent); - discommand_label->setAlignment(AlignVCenter); + discommand_label->tqsetAlignment(AlignVCenter); l1->addWidget(discommand_label, 3, 0); discommand = new TQLineEdit(parent); @@ -655,7 +655,7 @@ DNSWidget::DNSWidget( TQWidget *parent, bool isnewaccount, const char *name ) tl->addLayout(l1, 4, 1); add = new TQPushButton(i18n("&Add"), parent); connect(add, TQT_SIGNAL(clicked()), TQT_SLOT(adddns())); - int width = add->sizeHint().width(); + int width = add->tqsizeHint().width(); width = TQMAX(width,60); add->setMinimumWidth(width); l1->addWidget(add); @@ -667,7 +667,7 @@ DNSWidget::DNSWidget( TQWidget *parent, bool isnewaccount, const char *name ) remove = new TQPushButton(i18n("&Remove"), parent); connect(remove, TQT_SIGNAL(clicked()), TQT_SLOT(removedns())); - width = remove->sizeHint().width(); + width = remove->tqsizeHint().width(); width = TQMAX(width,60); remove->setMinimumWidth(width); l1->addWidget(remove); @@ -676,7 +676,7 @@ DNSWidget::DNSWidget( TQWidget *parent, bool isnewaccount, const char *name ) "server entry from the list below")); servers_label = new TQLabel(i18n("DNS address &list:"), parent); - servers_label->setAlignment(AlignTop|AlignLeft); + servers_label->tqsetAlignment(AlignTop|AlignLeft); tl->addWidget(servers_label, 5, 0); dnsservers = new TQListBox(parent); @@ -892,7 +892,7 @@ ScriptWidget::ScriptWidget( TQWidget *parent, bool isnewaccount, const char *nam bbox->addStretch(1); remove = bbox->addButton(i18n("&Remove")); connect(remove, TQT_SIGNAL(clicked()), TQT_SLOT(removeButton())); - bbox->layout(); + bbox->tqlayout(); tl->addWidget(bbox); TQHBoxLayout *l12 = new TQHBoxLayout(0); @@ -908,7 +908,7 @@ ScriptWidget::ScriptWidget( TQWidget *parent, bool isnewaccount, const char *nam sl->setMinimumSize(TQSize(150, 140)); slb = new TQScrollBar(parent); - slb->setFixedWidth(slb->sizeHint().width()); + slb->setFixedWidth(slb->tqsizeHint().width()); connect(slb, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(scrolling(int))); l12->addWidget(stl, 1); diff --git a/kppp/general.cpp b/kppp/general.cpp index 3aa84116..5ed9c459 100644 --- a/kppp/general.cpp +++ b/kppp/general.cpp @@ -38,7 +38,7 @@ #include "devices.h" #include "pppdata.h" #include <klocale.h> -#include <layout.h> +#include <tqlayout.h> #include <tqgrid.h> ///////////////////////////////////////////////////////////////////////////// diff --git a/kppp/iplined.cpp b/kppp/iplined.cpp index 197b13a6..989c790c 100644 --- a/kppp/iplined.cpp +++ b/kppp/iplined.cpp @@ -32,11 +32,11 @@ IPLineEdit::IPLineEdit( TQWidget *parent, const char *name ) setMaxLength(3 * 4 + 1 * 3); } -TQSize IPLineEdit::sizeHint() const { +TQSize IPLineEdit::tqsizeHint() const { TQFontMetrics fm = fontMetrics(); TQSize s; - s.setHeight(TQLineEdit::sizeHint().height()); + s.setHeight(TQLineEdit::tqsizeHint().height()); s.setWidth(fm.boundingRect("888.888.888.888XX").width()); return s; } diff --git a/kppp/iplined.h b/kppp/iplined.h index b978b6f5..64a6dcbb 100644 --- a/kppp/iplined.h +++ b/kppp/iplined.h @@ -34,7 +34,7 @@ public: IPLineEdit( TQWidget *parent=0, const char *name=0 ); ~IPLineEdit() {} - virtual TQSize sizeHint() const; + virtual TQSize tqsizeHint() const; }; #endif diff --git a/kppp/kpppwidget.cpp b/kppp/kpppwidget.cpp index 4b78d330..28afa910 100644 --- a/kppp/kpppwidget.cpp +++ b/kppp/kpppwidget.cpp @@ -189,13 +189,13 @@ KPPPWidget::KPPPWidget( TQWidget *parent, const char *name ) int minw = 0; quit_b = new KPushButton(KStdGuiItem::quit(), this); connect( quit_b, TQT_SIGNAL(clicked()), TQT_SLOT(quitbutton())); - if(quit_b->sizeHint().width() > minw) - minw = quit_b->sizeHint().width(); + if(quit_b->tqsizeHint().width() > minw) + minw = quit_b->tqsizeHint().width(); setup_b = new KPushButton(KGuiItem(i18n("Co&nfigure..."), "configure"), this); connect( setup_b, TQT_SIGNAL(clicked()), TQT_SLOT(expandbutton())); - if(setup_b->sizeHint().width() > minw) - minw = setup_b->sizeHint().width(); + if(setup_b->tqsizeHint().width() > minw) + minw = setup_b->tqsizeHint().width(); if(gpppdata.access() != KConfig::ReadWrite) setup_b->setEnabled(false); @@ -206,19 +206,19 @@ KPPPWidget::KPPPWidget( TQWidget *parent, const char *name ) KHelpMenu *helpMenu = new KHelpMenu(this, KGlobal::instance()->aboutData(), true); help_b->setPopup((TQPopupMenu*)helpMenu->menu()); - if(help_b->sizeHint().width() > minw) - minw = help_b->sizeHint().width(); + if(help_b->tqsizeHint().width() > minw) + minw = help_b->tqsizeHint().width(); connect_b = new TQPushButton(i18n("&Connect"), this); connect_b->setDefault(true); connect_b->setFocus(); connect(connect_b, TQT_SIGNAL(clicked()), TQT_SLOT(beginConnect())); - if(connect_b->sizeHint().width() > minw) - minw = connect_b->sizeHint().width(); + if(connect_b->tqsizeHint().width() > minw) + minw = connect_b->tqsizeHint().width(); quit_b->setFixedWidth(minw); setup_b->setFixedWidth(minw); - help_b->setFixedWidth(help_b->sizeHint().width()); + help_b->setFixedWidth(help_b->tqsizeHint().width()); connect_b->setFixedWidth(minw); l2->addWidget(quit_b); @@ -227,7 +227,7 @@ KPPPWidget::KPPPWidget( TQWidget *parent, const char *name ) l2->addSpacing(20); l2->addWidget(connect_b); - setFixedSize(sizeHint()); + setFixedSize(tqsizeHint()); (void)new Modem; @@ -258,7 +258,7 @@ KPPPWidget::KPPPWidget( TQWidget *parent, const char *name ) KWin::setIcons(con->winId(), kapp->icon(), kapp->miniIcon() ); connect(this, TQT_SIGNAL(begin_connect()),con, TQT_SLOT(preinit())); - TQRect desk = KGlobalSettings::desktopGeometry(topLevelWidget()); + TQRect desk = KGlobalSettings::desktopGeometry(tqtopLevelWidget()); con->setGeometry(desk.center().x()-175, desk.center().y()-55, 350,110); // connect the ConnectWidgets various signals @@ -305,7 +305,7 @@ KPPPWidget::KPPPWidget( TQWidget *parent, const char *name ) bool result = gpppdata.setModem(m_strCmdlModem); if (!result){ TQString string; - string = i18n("No such Modem:\n%1\nFalling back to default").arg(m_strCmdlModem); + string = i18n("No such Modem:\n%1\nFalling back to default").tqarg(m_strCmdlModem); KMessageBox::error(this, string); m_bCmdlModem = false; } @@ -315,7 +315,7 @@ KPPPWidget::KPPPWidget( TQWidget *parent, const char *name ) bool result = gpppdata.setAccount(m_strCmdlAccount); if (!result){ TQString string; - string = i18n("No such Account:\n%1").arg(m_strCmdlAccount); + string = i18n("No such Account:\n%1").tqarg(m_strCmdlAccount); KMessageBox::error(this, string); m_bCmdlAccount = false; show(); @@ -515,8 +515,8 @@ void KPPPWidget::resetmodems() { } label7->setShown(m_bModemCShown); modem_c->setShown(m_bModemCShown); - layout()->invalidate(); - setFixedSize(sizeHint()); + tqlayout()->tqinvalidate(); + setFixedSize(tqsizeHint()); //set the default modem if(!gpppdata.defaultModem().isEmpty()) { @@ -598,8 +598,8 @@ void KPPPWidget::sigPPPDDied() { Modem::modem->unlockdevice(); con->pppdDied(); - Requester::rq->pppdExitStatus(); - gpppdata.setWaitCallback(gpppdata.callbackType() && Requester::rq->lastStatus == E_CBCP_WAIT); + Requester::rq->pppdExittqStatus(); + gpppdata.setWaitCallback(gpppdata.callbackType() && Requester::rq->lasttqStatus == E_CBCP_WAIT); if(!gpppdata.automatic_redial() && !gpppdata.waitCallback()) { quit_b->setFocus(); @@ -617,14 +617,14 @@ void KPPPWidget::sigPPPDDied() { "to come up."); else { msg = i18n("<p>The pppd daemon died unexpectedly!</p>"); - Requester::rq->pppdExitStatus(); - if (Requester::rq->lastStatus != 99) { // more recent pppds only - msg += i18n("<p>Exit status: %1").arg(Requester::rq->lastStatus); + Requester::rq->pppdExittqStatus(); + if (Requester::rq->lasttqStatus != 99) { // more recent pppds only + msg += i18n("<p>Exit status: %1").tqarg(Requester::rq->lasttqStatus); msg += i18n("</p><p>See 'man pppd' for an explanation of the error " "codes or take a look at the kppp FAQ on " " <a href=\"%1\">%2</a></p>") - .arg("http://developer.kde.org/~kppp/index.html") - .arg("http://developer.kde.org/~kppp/index.html"); + .tqarg("http://developer.kde.org/~kppp/index.html") + .tqarg("http://developer.kde.org/~kppp/index.html"); } } @@ -715,7 +715,7 @@ void KPPPWidget::beginConnect() { string = i18n("kppp cannot execute:\n %1\n" "Please make sure that you have given kppp " "setuid permission and that " - "pppd is executable.").arg(gpppdata.pppdPath()); + "pppd is executable.").tqarg(gpppdata.pppdPath()); KMessageBox::error(this, string); return; @@ -737,7 +737,7 @@ void KPPPWidget::beginConnect() { "your modem device properly " "and/or adjust the location of the modem device on " "the modem tab of " - "the setup dialog.").arg(device); + "the setup dialog.").tqarg(device); KMessageBox::error(this, string); return; } @@ -760,7 +760,7 @@ void KPPPWidget::beginConnect() { encodeWord(gpppdata.password()))) { TQString s; s = i18n("Cannot create PAP/CHAP authentication\n" - "file \"%1\"").arg(PAP_AUTH_FILE); + "file \"%1\"").tqarg(PAP_AUTH_FILE); KMessageBox::error(this, s); return; } @@ -775,7 +775,7 @@ void KPPPWidget::beginConnect() { hide(); - TQString tit = i18n("Connecting to: %1").arg(gpppdata.accname()); + TQString tit = i18n("Connecting to: %1").tqarg(gpppdata.accname()); con->setCaption(tit); con->enableButtons(); con->show(); @@ -922,7 +922,7 @@ void KPPPWidget::startAccounting() { if(!acct->loadRuleSet(gpppdata.accountingFile())) { TQString s= i18n("Can not load the accounting " - "ruleset \"%1\".").arg(gpppdata.accountingFile()); + "ruleset \"%1\".").tqarg(gpppdata.accountingFile()); // starting the messagebox with a timer will prevent us // from blocking the calling function ConnectWidget::timerEvent @@ -1020,7 +1020,7 @@ void KPPPWidget::showNews() { TQLabel *icon = new TQLabel(&dlg); icon->setPixmap(BarIcon("exclamation")); - icon->setFixedSize(icon->sizeHint()); + icon->setFixedSize(icon->tqsizeHint()); l1->addWidget(icon); l1->addLayout(l2); @@ -1037,7 +1037,7 @@ void KPPPWidget::showNews() { &dlg); TQCheckBox *cb = new TQCheckBox(i18n("Don't show this hint again"), &dlg); - cb->setFixedSize(cb->sizeHint()); + cb->setFixedSize(cb->tqsizeHint()); KButtonBox *bbox = new KButtonBox(&dlg); bbox->addStretch(1); @@ -1046,7 +1046,7 @@ void KPPPWidget::showNews() { dlg.connect(ok, TQT_SIGNAL(clicked()), &dlg, TQT_SLOT(accept())); bbox->addStretch(1); - bbox->layout(); + bbox->tqlayout(); l2->addWidget(l); l2->addWidget(cb); diff --git a/kppp/loginterm.cpp b/kppp/loginterm.cpp index fd544486..4be1dea0 100644 --- a/kppp/loginterm.cpp +++ b/kppp/loginterm.cpp @@ -123,10 +123,10 @@ LoginTerm::LoginTerm (TQWidget *parent, const char *name) connect(continue_b, TQT_SIGNAL(clicked()), TQT_SLOT(continuebutton())); int mwidth; - if (cancel_b->sizeHint().width() > continue_b->sizeHint().width()) - mwidth = cancel_b->sizeHint().width(); + if (cancel_b->tqsizeHint().width() > continue_b->tqsizeHint().width()) + mwidth = cancel_b->tqsizeHint().width(); else - mwidth = continue_b->sizeHint().width(); + mwidth = continue_b->tqsizeHint().width(); cancel_b->setFixedWidth(mwidth + 20); continue_b->setFixedWidth(mwidth + 20); diff --git a/kppp/logview/export.cpp b/kppp/logview/export.cpp index ae665ec5..b646acdc 100644 --- a/kppp/logview/export.cpp +++ b/kppp/logview/export.cpp @@ -23,7 +23,7 @@ #include "export.h" #include <tqpushbutton.h> -#include <textcodec.h> +#include <tqtextcodec.h> class Export; @@ -73,7 +73,7 @@ ExportWizard::ExportWizard(TQWidget *parent, const TQString &_date) formatLayout->addSpacing(10); typeInfo = new TQLabel(formatPage); - typeInfo->setAlignment(TQt::AlignTop | TQt::WordBreak); + typeInfo->tqsetAlignment(TQt::AlignTop | TQt::WordBreak); typeInfo->setText(i18n("<qt><b>Please choose the output format on the left side.</b></qt>")); typeInfo->setMinimumSize(350, 200); formatLayout->addWidget(typeInfo); @@ -219,12 +219,12 @@ void CSVExport::setFinishCode() { /***** HTMLExport *****/ HTMLExport::HTMLExport(const TQString &filename, const TQString &date) : Export(filename) { - TQString title = i18n("Connection log for %1").arg(date); + TQString title = i18n("Connection log for %1").tqarg(date); buffer = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n"; buffer.append("<html>\n<head>\n <title>"+title+"</title>\n"); - buffer.append(TQString::fromLatin1(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=") + buffer.append(TQString::tqfromLatin1(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=") + TQTextCodec::codecForLocale()->mimeName() + - TQString::fromLatin1("\">")); + TQString::tqfromLatin1("\">")); buffer.append("\n</head>\n<body>\n<h1>"+title+"</h1>\n\n"); buffer.append("<table width=\"100%\" border=\"1\">\n"); diff --git a/kppp/logview/export.h b/kppp/logview/export.h index 91a3ab14..fb1f0291 100644 --- a/kppp/logview/export.h +++ b/kppp/logview/export.h @@ -25,7 +25,7 @@ #include <tqwidget.h> #include <tqfile.h> -#include <layout.h> +#include <tqlayout.h> #include <tqlabel.h> #include <tqlistbox.h> #include <tqlineedit.h> diff --git a/kppp/logview/main.cpp b/kppp/logview/main.cpp index f034c462..6f87ae21 100644 --- a/kppp/logview/main.cpp +++ b/kppp/logview/main.cpp @@ -86,8 +86,8 @@ TopWidget::TopWidget() : KMainWindow(0, "") { kapp, TQT_SLOT(quit())); } - setMinimumSize(mw->sizeHint().width() + 15, - mw->sizeHint().height() + 120); + setMinimumSize(mw->tqsizeHint().width() + 15, + mw->tqsizeHint().height() + 120); setCentralWidget(w); } diff --git a/kppp/logview/monthly.cpp b/kppp/logview/monthly.cpp index 0844f85a..831976cc 100644 --- a/kppp/logview/monthly.cpp +++ b/kppp/logview/monthly.cpp @@ -38,67 +38,67 @@ static void formatBytes(double bytes, TQString &result) { if(bytes < 1024) result.setNum(bytes); else if(bytes < 1024*1024) - result = i18n("%1 KB").arg(KGlobal::locale()->formatNumber((float)bytes / 1024.0, 1)); + result = i18n("%1 KB").tqarg(KGlobal::locale()->formatNumber((float)bytes / 1024.0, 1)); else - result = i18n("%1 MB").arg(KGlobal::locale()->formatNumber((float)bytes / 1024.0 / 1024.0, 1)); + result = i18n("%1 MB").tqarg(KGlobal::locale()->formatNumber((float)bytes / 1024.0 / 1024.0, 1)); } static void formatBytesMonth(double bytes, TQString &result) { int day, days; - day = TQDate::currentDate().day(); - days = TQDate::currentDate().daysInMonth(); + day = TQDate::tqcurrentDate().day(); + days = TQDate::tqcurrentDate().daysInMonth(); bytes = (bytes / day) * days; if(bytes < 1024) result.setNum(bytes); else if(bytes < 1024*1024) - result = i18n("%1 KB").arg(KGlobal::locale()->formatNumber((float)bytes / 1024.0, 1)); + result = i18n("%1 KB").tqarg(KGlobal::locale()->formatNumber((float)bytes / 1024.0, 1)); else - result = i18n("%1 MB").arg(KGlobal::locale()->formatNumber((float)bytes / 1024.0 / 1024.0, 1)); + result = i18n("%1 MB").tqarg(KGlobal::locale()->formatNumber((float)bytes / 1024.0 / 1024.0, 1)); } static void formatDuration(int seconds, TQString &result) { TQString sec; sec.sprintf("%02d", seconds%60); if(seconds < 60) - result = i18n("%1s").arg(sec); + result = i18n("%1s").tqarg(sec); else if(seconds < 3600) - result = i18n("%1m %2s").arg(seconds/60).arg(sec); + result = i18n("%1m %2s").tqarg(seconds/60).tqarg(sec); else result = i18n("%1h %2m %3s") - .arg(seconds/3600) - .arg((seconds % 3600)/60) - .arg(sec); + .tqarg(seconds/3600) + .tqarg((seconds % 3600)/60) + .tqarg(sec); } static void formatDurationMonth(int seconds, TQString &result) { int day, days; - day = TQDate::currentDate().day(); - days = TQDate::currentDate().daysInMonth(); + day = TQDate::tqcurrentDate().day(); + days = TQDate::tqcurrentDate().daysInMonth(); seconds = (seconds / day) * days; TQString sec; sec.sprintf("%02d", seconds%60); if(seconds < 60) - result = i18n("%1s").arg(sec); + result = i18n("%1s").tqarg(sec); else if(seconds < 3600) - result = i18n("%1m %2s").arg(seconds/60).arg(sec); + result = i18n("%1m %2s").tqarg(seconds/60).tqarg(sec); else result = i18n("%1h %2m %3s") - .arg(seconds/3600) - .arg((seconds % 3600)/60) - .arg(sec); + .tqarg(seconds/3600) + .tqarg((seconds % 3600)/60) + .tqarg(sec); } static void costsMonth(double costs, double &result) { int day, days; - day = TQDate::currentDate().day(); - days = TQDate::currentDate().daysInMonth(); + day = TQDate::tqcurrentDate().day(); + days = TQDate::tqcurrentDate().daysInMonth(); result = (costs / day) * days; @@ -117,7 +117,7 @@ public: { } virtual void paintCell( TQPainter *p, const TQColorGroup & cg, - int column, int width, int alignment ); + int column, int width, int tqalignment ); virtual TQString key(int, bool) const; @@ -125,9 +125,9 @@ public: }; void LogListItem::paintCell( TQPainter *p, const TQColorGroup & cg, - int column, int width, int alignment ) + int column, int width, int tqalignment ) { - TQListViewItem::paintCell(p, cg, column, width, alignment); + TQListViewItem::paintCell(p, cg, column, width, tqalignment); // double line above sum //if(!li) { @@ -212,7 +212,7 @@ MonthlyWidget::MonthlyWidget(TQWidget *parent) : lv2->setSorting(-1); lv2->setItemMargin(2); lv2->setMaximumHeight(100); - lv2->setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Minimum); + lv2->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Minimum); lv2->setSelectionMode(TQListView::NoSelection); title = new TQLabel("X", this); @@ -220,7 +220,7 @@ MonthlyWidget::MonthlyWidget(TQWidget *parent) : f.setPointSize(f.pointSize() + 2); f.setBold(TRUE); title->setFont(f); - title->setFixedHeight(title->sizeHint().height()*2); + title->setFixedHeight(title->tqsizeHint().height()*2); cboConnections = new TQComboBox(false, this); // add a combo box to select connections cboConnections->setMaximumWidth(200); // a resonable size @@ -246,7 +246,7 @@ MonthlyWidget::MonthlyWidget(TQWidget *parent) : this, TQT_SLOT(exportWizard())); bbox->addStretch(8); - bbox->layout(); + bbox->tqlayout(); currentMonth(); layoutWidget(); @@ -265,8 +265,8 @@ void MonthlyWidget::layoutWidget() { f2.setPointSize(f2.pointSize() + 1); f2.setBold(TRUE); l->setFont(f2); - l->setFixedHeight(l->sizeHint().height()); - l->setAlignment( AlignLeft ); + l->setFixedHeight(l->tqsizeHint().height()); + l->tqsetAlignment( AlignLeft ); tl->addWidget(l, 5, 0); tl->addWidget(bbox, 1, 2); tl->addMultiCellWidget(lv, 1, 4, 0, 1); @@ -396,7 +396,7 @@ void MonthlyWidget::plotMonth() { const KCalendarSystem * calendar = KGlobal::locale()->calendar(); - if(calendar->month(periodeFirst()) == calendar->month(TQDate::currentDate())) { + if(calendar->month(periodeFirst()) == calendar->month(TQDate::tqcurrentDate())) { TQString m_bin, m_bout; @@ -426,13 +426,13 @@ void MonthlyWidget::plotMonth() { if(lv->childCount() > 0) { exportBttn->setEnabled(true); // export possibility t = i18n("Connection log for %1 %2") - .arg(calendar->monthName(startDate)) - .arg(calendar->year(startDate)); + .tqarg(calendar->monthName(startDate)) + .tqarg(calendar->year(startDate)); } else { exportBttn->setEnabled(false); // nothing to export t = i18n("No connection log for %1 %2 available") - .arg(calendar->monthName(startDate)) - .arg(calendar->year(startDate)); + .tqarg(calendar->monthName(startDate)) + .tqarg(calendar->year(startDate)); } title->setText(t); @@ -456,7 +456,7 @@ void MonthlyWidget::prevMonth() { void MonthlyWidget::currentMonth() { const KCalendarSystem * calendar = KGlobal::locale()->calendar(); - TQDate dt = TQDate::currentDate(); + TQDate dt = TQDate::tqcurrentDate(); calendar->setYMD(m_periodeFirst, calendar->year(dt), calendar->month(dt), 1); plotMonth(); @@ -464,9 +464,9 @@ void MonthlyWidget::currentMonth() { void MonthlyWidget::exportWizard() { const KCalendarSystem * calendar = KGlobal::locale()->calendar(); - TQString date = TQString::fromLatin1("%1-%2") // e.g.: June-2001 - .arg(calendar->monthName(periodeFirst())) - .arg(calendar->year(periodeFirst())); + TQString date = TQString::tqfromLatin1("%1-%2") // e.g.: June-2001 + .tqarg(calendar->monthName(periodeFirst())) + .tqarg(calendar->year(periodeFirst())); ExportWizard *wizard = new ExportWizard(0, date); wizard->exec(); @@ -576,7 +576,7 @@ void MonthlyWidget::exportWizard() { } } - if(calendar->month(periodeFirst()) == calendar->month(TQDate::currentDate())) { + if(calendar->month(periodeFirst()) == calendar->month(TQDate::tqcurrentDate())) { TQString m_bin, m_bout; if(bin < 0) @@ -595,10 +595,10 @@ void MonthlyWidget::exportWizard() { costsMonth(costs, costs); TQString m_costs(KGlobal::locale()->formatMoney(costs, TQString(), 2)); - TQString datetime = KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime(), true); + TQString datetime = KGlobal::locale()->formatDateTime( TQDateTime::tqcurrentDateTime(), true); exportIFace->addEmptyLine(); - exportIFace->addDataline(i18n("Monthly estimates (%1)").arg(datetime), + exportIFace->addDataline(i18n("Monthly estimates (%1)").tqarg(datetime), TQString(), TQString(), TQString(), m_duration, m_costs, m_bin, m_bout); } diff --git a/kppp/logview/monthly.h b/kppp/logview/monthly.h index 71c33739..2889a5af 100644 --- a/kppp/logview/monthly.h +++ b/kppp/logview/monthly.h @@ -24,7 +24,7 @@ #include "log.h" #include <tqwidget.h> -#include <layout.h> +#include <tqlayout.h> #include <tqlabel.h> #include <tqpushbutton.h> #include <tqvaluelist.h> diff --git a/kppp/macros.h b/kppp/macros.h index 1b5120ac..b631516a 100644 --- a/kppp/macros.h +++ b/kppp/macros.h @@ -3,13 +3,13 @@ #ifndef __MACROS__H__ #define __MACROS__H__ -#include <layout.h> - -#define MIN_WIDTH(w) w->setMinimumWidth(w->sizeHint().width()); -#define MIN_HEIGHT(w) w->setMinimumHeight(w->sizeHint().height()); -#define MIN_SIZE(w) w->setMinimumSize(w->sizeHint()); -#define FIXED_SIZE(w) w->setFixedSize(w->sizeHint()); -#define FIXED_WIDTH(w) w->setFixedWidth(w->sizeHint().width()); -#define FIXED_HEIGHT(w) w->setFixedHeight(w->sizeHint().height()); +#include <tqlayout.h> + +#define MIN_WIDTH(w) w->setMinimumWidth(w->tqsizeHint().width()); +#define MIN_HEIGHT(w) w->setMinimumHeight(w->tqsizeHint().height()); +#define MIN_SIZE(w) w->setMinimumSize(w->tqsizeHint()); +#define FIXED_SIZE(w) w->setFixedSize(w->tqsizeHint()); +#define FIXED_WIDTH(w) w->setFixedWidth(w->tqsizeHint().width()); +#define FIXED_HEIGHT(w) w->setFixedHeight(w->tqsizeHint().height()); #endif diff --git a/kppp/main.cpp b/kppp/main.cpp index 753291ba..b6bb6c57 100644 --- a/kppp/main.cpp +++ b/kppp/main.cpp @@ -241,7 +241,7 @@ int main( int argc, char **argv ) { KGlobal::dirs()->saveLocation("appdata", "Rules"); int pid = create_pidfile(); - TQString err_msg = i18n("kppp can't create or read from\n%1.").arg(pidfile); + TQString err_msg = i18n("kppp can't create or read from\n%1.").tqarg(pidfile); if(pid < 0) { KMessageBox::error(0L, err_msg); @@ -281,7 +281,7 @@ int main( int argc, char **argv ) { "Alternatively, if you have determined that " "there is no other kppp running, please " "click Continue to begin.") - .arg(pidfile).arg(pid); + .tqarg(pidfile).tqarg(pid); int button = KMessageBox::warningYesNo(0, msg, i18n("Error"), i18n("Exit"), KStdGuiItem::cont()); if (button == KMessageBox::Yes) /* exit */ diff --git a/kppp/miniterm.cpp b/kppp/miniterm.cpp index f2eff97f..db73149f 100644 --- a/kppp/miniterm.cpp +++ b/kppp/miniterm.cpp @@ -39,7 +39,7 @@ #include <kmenubar.h> #include <kstdguiitem.h> -#include <layout.h> +#include <tqlayout.h> #include <tqlabel.h> #include <tqtimer.h> #include <tqpopupmenu.h> @@ -79,11 +79,11 @@ MiniTerm::MiniTerm(TQWidget *parent, const char *name) setupToolbar(); - TQVBoxLayout *layout=new TQVBoxLayout(this); - layout->addWidget(menubar); - layout->addWidget(toolbar); - layout->addWidget(terminal); - layout->addWidget(statusbar); + TQVBoxLayout *tqlayout=new TQVBoxLayout(this); + tqlayout->addWidget(menubar); + tqlayout->addWidget(toolbar); + tqlayout->addWidget(terminal); + tqlayout->addWidget(statusbar); inittimer = new TQTimer(this); connect(inittimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(init())); diff --git a/kppp/modemcmds.cpp b/kppp/modemcmds.cpp index f867bf78..2416e4c5 100644 --- a/kppp/modemcmds.cpp +++ b/kppp/modemcmds.cpp @@ -24,7 +24,7 @@ * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <layout.h> +#include <tqlayout.h> #include <tqslider.h> #include <kbuttonbox.h> #include <stdlib.h> @@ -40,10 +40,10 @@ #include <tqlabel.h> -#define ADJUSTEDIT(e) e->setText("XXXXXXXXqy"); e->setMinimumSize(e->sizeHint()); e->setFixedHeight(e->sizeHint().height()); e->setText(""); e->setMaxLength(MODEMSTR_SIZE); +#define ADJUSTEDIT(e) e->setText("XXXXXXXXqy"); e->setMinimumSize(e->tqsizeHint()); e->setFixedHeight(e->tqsizeHint().height()); e->setText(""); e->setMaxLength(MODEMSTR_SIZE); // a little trick to make the label look like a disabled lineedit -#define FORMATSLIDERLABEL(l) l->setFixedWidth(l->sizeHint().width()); l->setFixedHeight(TQLineEdit(dummyWidget).sizeHint().height()); l->setAlignment(AlignCenter); l->setFrameStyle(TQFrame::WinPanel|TQFrame::Sunken); l->setLineWidth(2); +#define FORMATSLIDERLABEL(l) l->setFixedWidth(l->tqsizeHint().width()); l->setFixedHeight(TQLineEdit(dummyWidget).tqsizeHint().height()); l->tqsetAlignment(AlignCenter); l->setFrameStyle(TQFrame::WinPanel|TQFrame::Sunken); l->setLineWidth(2); ModemCommands::ModemCommands(TQWidget *parent, const char *name) : KDialogBase(parent, name, true, i18n("Edit Modem Commands"), Ok|Cancel) @@ -55,7 +55,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) const int GRIDROWS = 22; int row = 0; - // toplevel layout + // toplevel tqlayout TQVBoxLayout *tl = new TQVBoxLayout(dummyWidget, 10, 4); // add grid + frame @@ -72,7 +72,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) preinitslider = new TQSlider(0, 300, 1, 0, Qt::Horizontal, dummyWidget); - preinitslider->setFixedHeight(preinitslider->sizeHint().height()); + preinitslider->setFixedHeight(preinitslider->tqsizeHint().height()); connect(preinitslider, TQT_SIGNAL(valueChanged(int)), lpreinitslider, TQT_SLOT(setNum(int))); l2->addWidget(lpreinitslider, 0); @@ -83,7 +83,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) for(int i = 0; i < PPPData::NumInitStrings; i++) { initstr[i] = new TQLineEdit(dummyWidget); - TQLabel *initLabel = new TQLabel(i18n("Initialization string %1:").arg(i + 1), + TQLabel *initLabel = new TQLabel(i18n("Initialization string %1:").tqarg(i + 1), dummyWidget); ADJUSTEDIT(initstr[i]); l1->addWidget(initLabel, row, 1); @@ -96,7 +96,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) FORMATSLIDERLABEL(linitslider); initslider = new TQSlider(1, 300, 1, 0, Qt::Horizontal, dummyWidget); - initslider->setFixedHeight(initslider->sizeHint().height()); + initslider->setFixedHeight(initslider->tqsizeHint().height()); connect(initslider, TQT_SIGNAL(valueChanged(int)), linitslider, TQT_SLOT(setNum(int))); l3->addWidget(linitslider, 0); @@ -112,7 +112,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) FORMATSLIDERLABEL(ldurationslider); durationslider = new TQSlider(1, 255, 1, 0, Qt::Horizontal, dummyWidget); - durationslider->setFixedHeight(durationslider->sizeHint().height()); + durationslider->setFixedHeight(durationslider->tqsizeHint().height()); connect(durationslider, TQT_SIGNAL(valueChanged(int)), ldurationslider, TQT_SLOT(setNum(int))); l4->addWidget(ldurationslider, 0); @@ -228,7 +228,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) slider = new TQSlider(0, 255, 1, 0, Qt::Horizontal, dummyWidget); - slider->setFixedHeight(slider->sizeHint().height()); + slider->setFixedHeight(slider->tqsizeHint().height()); connect(slider, TQT_SIGNAL(valueChanged(int)), lslider, TQT_SLOT(setNum(int))); l5->addWidget(lslider, 0); @@ -242,14 +242,14 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) TQHBoxLayout *l6 = new TQHBoxLayout; l1->addLayout(l6, row++, 2); volume_off = new TQLineEdit(dummyWidget); - volume_off->setFixedHeight(volume_off->sizeHint().height()); - volume_off->setMinimumWidth((int)(volume_off->sizeHint().width() / 2)); + volume_off->setFixedHeight(volume_off->tqsizeHint().height()); + volume_off->setMinimumWidth((int)(volume_off->tqsizeHint().width() / 2)); volume_medium = new TQLineEdit(dummyWidget); - volume_medium->setFixedHeight(volume_medium->sizeHint().height()); - volume_medium->setMinimumWidth((int)(volume_medium->sizeHint().width() / 2)); + volume_medium->setFixedHeight(volume_medium->tqsizeHint().height()); + volume_medium->setMinimumWidth((int)(volume_medium->tqsizeHint().width() / 2)); volume_high = new TQLineEdit(dummyWidget); - volume_high->setFixedHeight(volume_high->sizeHint().height()); - volume_high->setMinimumWidth((int)(volume_high->sizeHint().width() / 2)); + volume_high->setFixedHeight(volume_high->tqsizeHint().height()); + volume_high->setMinimumWidth((int)(volume_high->tqsizeHint().width() / 2)); l6->addWidget(volume_off); l6->addWidget(volume_medium); l6->addWidget(volume_high); diff --git a/kppp/modemdb.cpp b/kppp/modemdb.cpp index 2729ede3..35eff389 100644 --- a/kppp/modemdb.cpp +++ b/kppp/modemdb.cpp @@ -34,7 +34,7 @@ #include <tqlabel.h> #include <kbuttonbox.h> -#include <layout.h> +#include <tqlayout.h> #include "modemdb.h" #include <klocale.h> #include <tqpushbutton.h> @@ -51,7 +51,7 @@ ModemSelector::ModemSelector(TQWidget *parent) : TQDialog(parent, 0, true) { "right list. If you don't know which modem you have, " "you can try out one of the \"Generic\" modems."), this); - l1->setAlignment(AlignLeft | WordBreak); + l1->tqsetAlignment(AlignLeft | WordBreak); l1->setFixedWidth(400); l1->setMinimumHeight(50); tl->addWidget(l1, 0); @@ -73,9 +73,9 @@ ModemSelector::ModemSelector(TQWidget *parent) : TQDialog(parent, 0, true) { ok->setDefault(true); ok->setEnabled(false); cancel = bbox->addButton(KStdGuiItem::cancel()); - bbox->layout(); + bbox->tqlayout(); tl->addWidget(bbox); - setFixedSize(sizeHint()); + setFixedSize(tqsizeHint()); // set up modem database db = new ModemDatabase(); diff --git a/kppp/modeminfo.cpp b/kppp/modeminfo.cpp index 89fbff72..d242c4f4 100644 --- a/kppp/modeminfo.cpp +++ b/kppp/modeminfo.cpp @@ -26,7 +26,7 @@ #include <unistd.h> #include <tqregexp.h> -#include <layout.h> +#include <tqlayout.h> #include <twin.h> #include <kmessagebox.h> #include <kapplication.h> @@ -48,7 +48,7 @@ ModemTransfer::ModemTransfer(TQWidget *parent, const char *name) statusBar = new TQLabel(this,"sBar"); statusBar->setFrameStyle(TQFrame::Panel|TQFrame::Sunken); - statusBar->setAlignment(AlignCenter); + statusBar->tqsetAlignment(AlignCenter); // This is a rather complicated case. Since we do not know which // message is the widest in the national language, we'd to @@ -56,12 +56,12 @@ ModemTransfer::ModemTransfer(TQWidget *parent, const char *name) // the longest english message, translate it and give it additional // 20 percent space. Hope this is enough. statusBar->setText(i18n("Unable to create modem lock file.")); - statusBar->setFixedWidth((statusBar->sizeHint().width() * 12) / 10); - statusBar->setFixedHeight(statusBar->sizeHint().height() + 4); + statusBar->setFixedWidth((statusBar->tqsizeHint().width() * 12) / 10); + statusBar->setFixedHeight(statusBar->tqsizeHint().height() + 4); // set original text statusBar->setText(i18n("Looking for modem...")); - progressBar->setFixedHeight(statusBar->minimumSize().height()); + progressBar->setFixedHeight(statusBar->tqminimumSize().height()); tl->addWidget(progressBar); tl->addWidget(statusBar); @@ -74,7 +74,7 @@ ModemTransfer::ModemTransfer(TQWidget *parent, const char *name) l1->addStretch(1); l1->addWidget(cancel); - setFixedSize(sizeHint()); + setFixedSize(tqsizeHint()); step = 0; @@ -280,7 +280,7 @@ ModemInfo::ModemInfo(TQWidget *parent, const char* name) connect(ok, TQT_SIGNAL(clicked()), TQT_SLOT(accept())); l2->addWidget(ok); - setMinimumSize(sizeHint()); + setMinimumSize(tqsizeHint()); } diff --git a/kppp/modems.cpp b/kppp/modems.cpp index ea4a461e..55f8f629 100644 --- a/kppp/modems.cpp +++ b/kppp/modems.cpp @@ -27,7 +27,7 @@ #include <tqdir.h> #include <stdlib.h> -#include <layout.h> +#include <tqlayout.h> #include <tqtabdialog.h> #include <tqwhatsthis.h> #include <tqmessagebox.h> @@ -74,7 +74,7 @@ ModemsWidget::ModemsWidget( TQWidget *parent, const char *name ) connect(edit_b, TQT_SIGNAL(clicked()), TQT_SLOT(editmodem())); TQWhatsThis::add(edit_b, i18n("Allows you to modify the selected account")); - min = edit_b->sizeHint().width(); + min = edit_b->tqsizeHint().width(); min = TQMAX(70,min); edit_b->setMinimumWidth(min); @@ -190,7 +190,7 @@ void ModemsWidget::copymodem() { void ModemsWidget::deletemodem() { TQString s = i18n("Are you sure you want to delete\nthe modem \"%1\"?") - .arg(modemlist_l->text(modemlist_l->currentItem())); + .tqarg(modemlist_l->text(modemlist_l->currentItem())); if(KMessageBox::warningContinueCancel(this, s, i18n("Confirm"), KStdGuiItem::del()) != KMessageBox::Continue) return; diff --git a/kppp/newwidget.cpp b/kppp/newwidget.cpp index ba8508e5..49676ddd 100644 --- a/kppp/newwidget.cpp +++ b/kppp/newwidget.cpp @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// // -// functions generating layout-aware widgets +// functions generating tqlayout-aware widgets // ///////////////////////////////////////////////////////////////////////////// @@ -9,7 +9,7 @@ TQLineEdit *newLineEdit(int visiblewidth, TQWidget *parent) { TQLineEdit *l = new TQLineEdit(parent); if(visiblewidth == 0) - l->setMinimumWidth(l->sizeHint().width()); + l->setMinimumWidth(l->tqsizeHint().width()); else l->setFixedWidth(l->fontMetrics().width('H') * visiblewidth); diff --git a/kppp/newwidget.h b/kppp/newwidget.h index 2cb2e717..07129c74 100644 --- a/kppp/newwidget.h +++ b/kppp/newwidget.h @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// // -// functions generating layout-aware widgets +// functions generating tqlayout-aware widgets // ///////////////////////////////////////////////////////////////////////////// diff --git a/kppp/opener.cpp b/kppp/opener.cpp index 5d90cc0e..0d46edd9 100644 --- a/kppp/opener.cpp +++ b/kppp/opener.cpp @@ -128,7 +128,7 @@ extern "C" { static void sighandler_child(int); static pid_t pppdPid = -1; -static int pppdExitStatus = -1; +static int pppdExittqStatus = -1; static int checkForInterface(); // processing will stop at first file that could be opened successfully @@ -316,10 +316,10 @@ void Opener::mainLoop() { sendResponse(&response); break; - case PPPDExitStatus: + case PPPDExittqStatus: Debug("Opener: received PPPDExitStatus"); MY_ASSERT(len == sizeof(struct PPPDExitStatusRequest)); - response.status = pppdExitStatus; + response.status = pppdExittqStatus; sendResponse(&response); break; @@ -519,7 +519,7 @@ bool Opener::execpppd(const char *arguments) { if(ttyfd<0) return false; - pppdExitStatus = -1; + pppdExittqStatus = -1; switch(pppdPid = fork()) { @@ -711,10 +711,10 @@ void sighandler_child(int) { Debug("It was pppd that died"); pppdPid = -1; if((WIFEXITED(status))) { - pppdExitStatus = (WEXITSTATUS(status)); - Debug2("pppd exited with return value %d\n", pppdExitStatus); + pppdExittqStatus = (WEXITSTATUS(status)); + Debug2("pppd exited with return value %d\n", pppdExittqStatus); } else { - pppdExitStatus = 99; + pppdExittqStatus = 99; Debug("pppd exited abnormally."); } Debug2("Sending %i a SIGUSR1\n", getppid()); diff --git a/kppp/opener.h b/kppp/opener.h index 812ec9ba..99568f5d 100644 --- a/kppp/opener.h +++ b/kppp/opener.h @@ -34,7 +34,7 @@ public: SetSecret, RemoveSecret, SetHostname, ExecPPPDaemon, KillPPPDaemon, - PPPDExitStatus, + PPPDExittqStatus, Stop }; enum Auth { PAP = 1, CHAP }; enum { MaxPathLen = 30, MaxStrLen = 40, MaxArgs = 100 }; diff --git a/kppp/pppdargs.cpp b/kppp/pppdargs.cpp index 1b696811..56814f34 100644 --- a/kppp/pppdargs.cpp +++ b/kppp/pppdargs.cpp @@ -25,7 +25,7 @@ * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <layout.h> +#include <tqlayout.h> #include <kbuttonbox.h> #include <twin.h> #include <kapplication.h> @@ -95,10 +95,10 @@ PPPdArguments::PPPdArguments(TQWidget *parent, const char *name) TQPushButton *cancel = bbox->addButton(KStdGuiItem::cancel()); connect(cancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); - bbox->layout(); + bbox->tqlayout(); l->addWidget(bbox); - setFixedSize(sizeHint()); + setFixedSize(tqsizeHint()); //load info from gpppdata init(); diff --git a/kppp/pppdata.cpp b/kppp/pppdata.cpp index a983a8b4..ceb8298b 100644 --- a/kppp/pppdata.cpp +++ b/kppp/pppdata.cpp @@ -350,7 +350,7 @@ void PPPData::set_dock_into_panel(bool set) { TQString PPPData::pppdVersion() { - return TQString("%1.%2.%3").arg(pppdVer).arg(pppdMod).arg(pppdPatch); + return TQString("%1.%2.%3").tqarg(pppdVer).tqarg(pppdMod).tqarg(pppdPatch); } bool PPPData::pppdVersionMin(int ver, int mod, int patch) { @@ -498,7 +498,7 @@ int PPPData::copymodem(int i) { TQMap <TQString, TQString> map = config->entryMap(cmodemgroup); TQMap <TQString, TQString>::ConstIterator it = map.begin(); - TQString newname = i18n("%1_copy").arg(modname()); + TQString newname = i18n("%1_copy").tqarg(modname()); newmodem(); @@ -1026,7 +1026,7 @@ int PPPData::copyaccount(int i) { TQMap <TQString, TQString> map = config->entryMap(caccountgroup); TQMap <TQString, TQString>::ConstIterator it = map.begin(); - TQString newname = i18n("%1_copy").arg(accname()); + TQString newname = i18n("%1_copy").tqarg(accname()); newaccount(); diff --git a/kppp/ppplog.cpp b/kppp/ppplog.cpp index d634b366..a5075b3e 100644 --- a/kppp/ppplog.cpp +++ b/kppp/ppplog.cpp @@ -40,7 +40,7 @@ #include <tqdialog.h> #include <tqregexp.h> #include <tqmultilineedit.h> -#include <layout.h> +#include <tqlayout.h> #include <kbuttonbox.h> #include <kmessagebox.h> @@ -171,7 +171,7 @@ void PPPL_AnalyseLog(TQStringList &list, TQStringList &result) { if(!str.isEmpty()) { msg = i18n("Notice that the remote system has sent the following" " message:\n\"%1\"\nThis may give you a hint why the" - " the connection has failed.").arg(str); + " the connection has failed.").tqarg(str); result.append(msg); } } @@ -202,8 +202,8 @@ void PPPL_ShowLog() { bool foundConnect = false; bool foundLCP = gpppdata.getPPPDebug(); - TQString lcp = TQString::fromLatin1("[LCP"); - TQString conn = TQString::fromLatin1("Connect:"); + TQString lcp = TQString::tqfromLatin1("[LCP"); + TQString conn = TQString::tqfromLatin1("Connect:"); TQStringList::ConstIterator it = sl.begin(); for( ; it != sl.end(); it++) { if((*it).find(lcp) >= 0) { @@ -249,7 +249,7 @@ void PPPL_ShowLog() { bbox->addStretch(1); TQPushButton *write = bbox->addButton(i18n("Write to File")); TQPushButton *close = bbox->addButton(KStdGuiItem::close()); - bbox->layout(); + bbox->tqlayout(); edit->setMinimumSize(600, 250); label->setMinimumSize(600, 15); diagnosis->setMinimumSize(600, 60); @@ -258,7 +258,7 @@ void PPPL_ShowLog() { tl->addWidget(label); tl->addWidget(diagnosis, 1); tl->addWidget(bbox); - dlg->setFixedSize(dlg->sizeHint()); + dlg->setFixedSize(dlg->tqsizeHint()); for(uint i = 0; i < sl.count(); i++) edit->append(*sl.at(i)); @@ -281,7 +281,7 @@ void PPPL_ShowLog() { fclose(f); umask(old_umask); - TQString msg = i18n("The PPP log has been saved\nas \"%1\"!\n\nIf you want to send a bug report, or have\nproblems connecting to the Internet, please\nattach this file. It will help the maintainers\nto find the bug and to improve KPPP").arg(s); + TQString msg = i18n("The PPP log has been saved\nas \"%1\"!\n\nIf you want to send a bug report, or have\nproblems connecting to the Internet, please\nattach this file. It will help the maintainers\nto find the bug and to improve KPPP").tqarg(s); KMessageBox::information(0, msg); } delete dlg; diff --git a/kppp/pppstatdlg.cpp b/kppp/pppstatdlg.cpp index b85fe2ce..b5b12f42 100644 --- a/kppp/pppstatdlg.cpp +++ b/kppp/pppstatdlg.cpp @@ -23,7 +23,7 @@ */ -#include <layout.h> +#include <tqlayout.h> #include <tqpainter.h> #include <twin.h> #include <kiconloader.h> @@ -80,7 +80,7 @@ PPPStatsDlg::PPPStatsDlg(TQWidget *parent, const char *name, TQWidget *, pixmap_l = new TQLabel(this); pixmap_l->setMinimumSize(big_modem_both_pixmap.size()); l111->addWidget(pixmap_l, 1); - pixmap_l->setAlignment(AlignVCenter|AlignLeft); + pixmap_l->tqsetAlignment(AlignVCenter|AlignLeft); TQGridLayout *l1112 = new TQGridLayout(3, 2); l111->addLayout(l1112); @@ -137,14 +137,14 @@ PPPStatsDlg::PPPStatsDlg(TQWidget *parent, const char *name, TQWidget *, for(i = 0; i < 5; i++) { labela2[i]->setText("888888888"); // TODO: resize automatically labelb2[i]->setText("888888888"); - labela2[i]->setAlignment(TQt::AlignRight); - labelb2[i]->setAlignment(TQt::AlignRight); - labela2[i]->setFixedSize(labela2[i]->sizeHint()); - labelb2[i]->setFixedSize(labelb2[i]->sizeHint()); + labela2[i]->tqsetAlignment(TQt::AlignRight); + labelb2[i]->tqsetAlignment(TQt::AlignRight); + labela2[i]->setFixedSize(labela2[i]->tqsizeHint()); + labelb2[i]->setFixedSize(labelb2[i]->tqsizeHint()); labela2[i]->setText(""); labelb2[i]->setText(""); - // add to layout + // add to tqlayout l112->addWidget(labela1[i], i, 0); l112->addWidget(labela2[i], i, 1); l112->addWidget(labelb1[i], i, 2); @@ -175,8 +175,8 @@ PPPStatsDlg::PPPStatsDlg(TQWidget *parent, const char *name, TQWidget *, cancelbutton = new KPushButton(KStdGuiItem::close(),this, "cancelbutton"); cancelbutton->setFocus(); connect(cancelbutton, TQT_SIGNAL(clicked()), this,TQT_SLOT(cancel())); - cancelbutton->setFixedHeight(cancelbutton->sizeHint().height()); - cancelbutton->setMinimumWidth(TQMAX(cancelbutton->sizeHint().width(), 70)); + cancelbutton->setFixedHeight(cancelbutton->tqsizeHint().height()); + cancelbutton->setMinimumWidth(TQMAX(cancelbutton->tqsizeHint().width(), 70)); l12->addWidget(cancelbutton); if(gpppdata.graphingEnabled()) { @@ -184,7 +184,7 @@ PPPStatsDlg::PPPStatsDlg(TQWidget *parent, const char *name, TQWidget *, connect(graphTimer, TQT_SIGNAL(timeout()), TQT_SLOT(updateGraph())); } - setFixedSize(sizeHint()); + setFixedSize(tqsizeHint()); connect(stats, TQT_SIGNAL(statsChanged(int)), TQT_SLOT(paintIcon(int))); @@ -290,8 +290,8 @@ void PPPStatsDlg::paintGraph() { TQRect r; TQString s = i18n("%1 (max. %2) kb/sec") - .arg(KGlobal::locale()->formatNumber((float)last_max / 1024.0, 1)) - .arg(KGlobal::locale()->formatNumber((float)max / 1024.0, 1)); + .tqarg(KGlobal::locale()->formatNumber((float)last_max / 1024.0, 1)) + .tqarg(KGlobal::locale()->formatNumber((float)max / 1024.0, 1)); p.drawText(0, 0, pm.width(), 2*8, AlignRight|AlignVCenter, s, -1, &r); p.drawLine(0, 8, r.left() - 8, 8); diff --git a/kppp/pppstats.cpp b/kppp/pppstats.cpp index 29a87e77..fb4d6428 100644 --- a/kppp/pppstats.cpp +++ b/kppp/pppstats.cpp @@ -127,25 +127,25 @@ void PPPStats::clear() compressed = 0; packetsunc = 0; packetsoutunc = 0; - ioStatus = BytesNone; + iotqStatus = BytesNone; } void PPPStats::timerClick() { - enum IOStatus newStatus; + enum IOtqStatus newtqStatus; doStats(); if((ibytes != ibytes_last) && (obytes != obytes_last)) - newStatus = BytesBoth; + newtqStatus = BytesBoth; else if(ibytes != ibytes_last) - newStatus = BytesIn; + newtqStatus = BytesIn; else if(obytes != obytes_last) - newStatus = BytesOut; + newtqStatus = BytesOut; else - newStatus = BytesNone; + newtqStatus = BytesNone; - if(newStatus != ioStatus) - emit statsChanged(ioStatus = newStatus); + if(newtqStatus != iotqStatus) + emit statsChanged(iotqStatus = newtqStatus); ibytes_last = ibytes; obytes_last = obytes; diff --git a/kppp/pppstats.h b/kppp/pppstats.h index 4fdf17bd..91e4e9e0 100644 --- a/kppp/pppstats.h +++ b/kppp/pppstats.h @@ -65,7 +65,7 @@ public: TQString local_ip_address; TQString remote_ip_address; - enum IOStatus { BytesNone = 0, BytesIn, BytesOut, BytesBoth }; + enum IOtqStatus { BytesNone = 0, BytesIn, BytesOut, BytesBoth }; private: bool get_ppp_stats(struct ppp_stats *curp); @@ -78,7 +78,7 @@ private: #endif int unit; char unitName[5]; - enum IOStatus ioStatus; + enum IOtqStatus iotqStatus; TQTimer *timer; }; diff --git a/kppp/providerdb.cpp b/kppp/providerdb.cpp index 2012ba18..97d13612 100644 --- a/kppp/providerdb.cpp +++ b/kppp/providerdb.cpp @@ -31,7 +31,7 @@ #include <tqdir.h> #include <tqlabel.h> -#include <layout.h> +#include <tqlayout.h> #include <tqregexp.h> #include <klocale.h> #include <kstandarddirs.h> @@ -88,7 +88,7 @@ ProviderDB::ProviderDB(TQWidget *parent) : connect((const TQObject *)backButton(), TQT_SIGNAL(clicked()), this, TQT_SLOT(pageSelected())); - // resize(minimumSize()); + // resize(tqminimumSize()); adjustSize(); } @@ -461,7 +461,7 @@ void urlEncode(TQString &s) { if(TQString(UNENCODED_CHARS).find(s[i]) >= 0) s1 += s[i]; else { - tmp.sprintf("%%%03i", s[i].unicode()); + tmp.sprintf("%%%03i", s[i].tqunicode()); s1 += tmp; } } diff --git a/kppp/pwentry.cpp b/kppp/pwentry.cpp index 270b4b72..c3025762 100644 --- a/kppp/pwentry.cpp +++ b/kppp/pwentry.cpp @@ -36,7 +36,7 @@ PWEntry::PWEntry( TQWidget *parent, const char *name ) if(parent){ TQPoint point = mapToGlobal (TQPoint (0,0)); - TQRect pos = geometry(); + TQRect pos = tqgeometry(); setGeometry(point.x() + pos.width()/2 - 300/2, point.y() + pos.height()/2 - 90/2, diff --git a/kppp/requester.cpp b/kppp/requester.cpp index b5450929..dcb28fcb 100644 --- a/kppp/requester.cpp +++ b/kppp/requester.cpp @@ -70,7 +70,7 @@ Requester *Requester::rq = 0L; Requester::Requester(int s) : socket(s) { assert(rq==0L); rq = this; - lastStatus = -1; + lasttqStatus = -1; } Requester::~Requester() { @@ -167,7 +167,7 @@ bool Requester::recvResponse() { kdDebug(5002) << "response.status: " << response.status << endl; } - lastStatus = response.status; + lasttqStatus = response.status; return (response.status == 0); } @@ -306,10 +306,10 @@ bool Requester::killPPPDaemon() { return recvResponse(); } -int Requester::pppdExitStatus() +int Requester::pppdExittqStatus() { struct PPPDExitStatusRequest req; - req.header.type = Opener::PPPDExitStatus; + req.header.type = Opener::PPPDExittqStatus; sendRequest((struct RequestHeader *) &req, sizeof(req)); return recvResponse(); } diff --git a/kppp/requester.h b/kppp/requester.h index ea415df0..46626df5 100644 --- a/kppp/requester.h +++ b/kppp/requester.h @@ -17,12 +17,12 @@ public: bool setHostname(const TQString & name); bool execPPPDaemon(const TQString & arguments); bool killPPPDaemon(); - int pppdExitStatus(); + int pppdExittqStatus(); bool stop(); public: static Requester *rq; - int lastStatus; + int lasttqStatus; private: bool sendRequest(struct RequestHeader *request, int len); diff --git a/kppp/ruleset.cpp b/kppp/ruleset.cpp index 723d5f2b..ef9d9517 100644 --- a/kppp/ruleset.cpp +++ b/kppp/ruleset.cpp @@ -362,7 +362,7 @@ bool RuleSet::parseLine(const TQString &s) { // parse the days token = s.mid(s.find("on(") + 3, s.find(")betw")-s.find("on(") - 3); - if(!parseEntries(token, TQDate::currentDate().year(), + if(!parseEntries(token, TQDate::tqcurrentDate().year(), t1, t2, costs, len, after)) return FALSE; diff --git a/kppp/runtests.cpp b/kppp/runtests.cpp index a520d116..23f2196d 100644 --- a/kppp/runtests.cpp +++ b/kppp/runtests.cpp @@ -253,7 +253,7 @@ int runTests() { i18n("You don't have sufficient permission to run\n" "%1\n" "Please make sure that kppp is owned by root " - "and has the SUID bit set.").arg(f)); + "and has the SUID bit set.").tqarg(f)); warning++; } } @@ -265,7 +265,7 @@ int runTests() { TQString msgstr = i18n("%1 is missing or can't be read!\n" "Ask your system administrator to create " "this file (can be empty) with appropriate " - "read and write permissions.").arg(file); + "read and write permissions.").tqarg(file); KMessageBox::error(0, msgstr); warning ++; } diff --git a/kppp/scriptedit.cpp b/kppp/scriptedit.cpp index 21ed43fc..afa88821 100644 --- a/kppp/scriptedit.cpp +++ b/kppp/scriptedit.cpp @@ -26,7 +26,7 @@ */ #include "scriptedit.h" -#include <layout.h> +#include <tqlayout.h> #include <tqcombobox.h> #include <tqlineedit.h> |