summaryrefslogtreecommitdiffstats
path: root/kppp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:49:40 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:49:40 -0600
commit808e453c56036211f57482ed847d54aca01bba68 (patch)
tree75515d5768dea10d4fbe4cd772e0a89c1c4b3aa9 /kppp
parentcd9b9ed7fd0ac8a75106148254aa58e2e5c04863 (diff)
downloadtdenetwork-808e453c56036211f57482ed847d54aca01bba68.tar.gz
tdenetwork-808e453c56036211f57482ed847d54aca01bba68.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kppp')
-rw-r--r--kppp/accounting.cpp10
-rw-r--r--kppp/accounts.cpp16
-rw-r--r--kppp/acctselect.cpp4
-rw-r--r--kppp/connect.cpp60
-rw-r--r--kppp/conwindow.cpp28
-rw-r--r--kppp/conwindow.h2
-rw-r--r--kppp/debug.cpp2
-rw-r--r--kppp/edit.cpp24
-rw-r--r--kppp/general.cpp2
-rw-r--r--kppp/iplined.cpp4
-rw-r--r--kppp/iplined.h2
-rw-r--r--kppp/kpppwidget.cpp60
-rw-r--r--kppp/loginterm.cpp6
-rw-r--r--kppp/logview/export.cpp10
-rw-r--r--kppp/logview/export.h2
-rw-r--r--kppp/logview/main.cpp4
-rw-r--r--kppp/logview/monthly.cpp80
-rw-r--r--kppp/logview/monthly.h2
-rw-r--r--kppp/macros.h16
-rw-r--r--kppp/main.cpp4
-rw-r--r--kppp/miniterm.cpp12
-rw-r--r--kppp/modemcmds.cpp30
-rw-r--r--kppp/modemdb.cpp8
-rw-r--r--kppp/modeminfo.cpp14
-rw-r--r--kppp/modems.cpp6
-rw-r--r--kppp/newwidget.cpp4
-rw-r--r--kppp/newwidget.h2
-rw-r--r--kppp/opener.cpp14
-rw-r--r--kppp/opener.h2
-rw-r--r--kppp/pppdargs.cpp6
-rw-r--r--kppp/pppdata.cpp6
-rw-r--r--kppp/ppplog.cpp14
-rw-r--r--kppp/pppstatdlg.cpp24
-rw-r--r--kppp/pppstats.cpp16
-rw-r--r--kppp/pppstats.h4
-rw-r--r--kppp/providerdb.cpp6
-rw-r--r--kppp/pwentry.cpp2
-rw-r--r--kppp/requester.cpp8
-rw-r--r--kppp/requester.h4
-rw-r--r--kppp/ruleset.cpp2
-rw-r--r--kppp/runtests.cpp4
-rw-r--r--kppp/scriptedit.cpp2
42 files changed, 264 insertions, 264 deletions
diff --git a/kppp/accounting.cpp b/kppp/accounting.cpp
index 2d7ab5d7..76c5f02e 100644
--- a/kppp/accounting.cpp
+++ b/kppp/accounting.cpp
@@ -72,10 +72,10 @@ AccountingBase::AccountingBase(TQObject *parent) :
_total(0),
_session(0)
{
- TQDate dt = TQDate::tqcurrentDate();
+ TQDate dt = TQDate::currentDate();
LogFileName = TQString("%1-%2.log")
- .tqarg(TQDate::shortMonthName(dt.month()))
- .tqarg(dt.year(), 4);
+ .arg(TQDate::shortMonthName(dt.month()))
+ .arg(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::tqcurrentDateTime(), connect_time, newCosts, newLen);
+ rules.getActiveRule(TQDateTime::currentDateTime(), 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::tqcurrentDateTime());
+ rules.setStartTime(TQDateTime::currentDateTime());
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 450e2a1b..66fac600 100644
--- a/kppp/accounts.cpp
+++ b/kppp/accounts.cpp
@@ -26,7 +26,7 @@
#include <tqdir.h>
#include <stdlib.h>
-#include <tqlayout.h>
+#include <layout.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->tqsizeHint().width();
+ min = edit_b->sizeHint().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->tqsizeHint().height());
+ costedit->setFixedHeight(costedit->sizeHint().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->tqsizeHint().height());
+ voledit->setFixedHeight(voledit->sizeHint().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\"?")
- .tqarg(accountlist_l->text(accountlist_l->currentItem()));
+ .arg(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-tqlayout and sets tqminimumSize()
+ // this activates the f-layout and sets minimumSize()
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->tqlayout();
+ bbox->layout();
tl->addWidget(bbox);
// TODO: activate if KGroupBox is fixed
- // setFixedSize(tqsizeHint());
+ // setFixedSize(sizeHint());
}
diff --git a/kppp/acctselect.cpp b/kppp/acctselect.cpp
index 121713c5..6b724b16 100644
--- a/kppp/acctselect.cpp
+++ b/kppp/acctselect.cpp
@@ -36,7 +36,7 @@
#include <tqcombobox.h>
#include <tqlabel.h>
#include <kurllabel.h>
-#include <tqlayout.h>
+#include <layout.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->tqsizeHint().height() + 16);
+ selected->setFixedHeight(selected->sizeHint().height() + 16);
l11->addWidget(lsel, 0);
l11->addSpacing(10);
l11->addWidget(selected, 1);
diff --git a/kppp/connect.cpp b/kppp/connect.cpp
index ea755a3e..38630928 100644
--- a/kppp/connect.cpp
+++ b/kppp/connect.cpp
@@ -26,7 +26,7 @@
#include <config.h>
-#include <tqlayout.h>
+#include <layout.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->tqsetAlignment(AlignCenter);
+ messg->setAlignment(AlignCenter);
messg->setText(i18n("Unable to create modem lock file."));
- messg->setMinimumHeight(messg->tqsizeHint().height() + 5);
- int messw = (messg->tqsizeHint().width() * 12) / 10;
+ messg->setMinimumHeight(messg->sizeHint().height() + 5);
+ int messw = (messg->sizeHint().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->tqsizeHint().width(),
- debug->tqsizeHint().width());
+ int maxw = TQMAX(cancel->sizeHint().width(),
+ debug->sizeHint().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(tqsizeHint());
+ setFixedSize(sizeHint());
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").tqarg(gpppdata.accname());
+ TQString tit = i18n("Connecting to: %1").arg(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").tqarg(bmarg);
+ TQString bm = i18n("Dialing %1").arg(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").tqarg(gpppdata.busyWait());
+ TQString bm = i18n("Line busy. Waiting: %1 seconds").arg(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").tqarg(gpppdata.busyWait());
+ TQString bm = i18n("No carrier. Waiting: %1 seconds").arg(gpppdata.busyWait());
messg->setText(bm);
emit debugMessage(bm);
@@ -553,7 +553,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) {
}
if (scriptCommand == "Scan") {
- TQString bm = i18n("Scanning %1").tqarg(scriptArgument);
+ TQString bm = i18n("Scanning %1").arg(scriptArgument);
messg->setText(bm);
emit debugMessage(bm);
@@ -563,7 +563,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) {
}
if (scriptCommand == "Save") {
- TQString bm = i18n("Saving %1").tqarg(scriptArgument);
+ TQString bm = i18n("Saving %1").arg(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.tqarg(scriptArgument);
+ bm = bm.arg(scriptArgument);
else {
for(uint i = 0; i < scriptArgument.length(); i++)
- bm = bm.tqarg("*");
+ bm = bm.arg("*");
}
messg->setText(bm);
@@ -606,7 +606,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) {
}
if (scriptCommand == "Expect") {
- TQString bm = i18n("Expecting %1").tqarg(scriptArgument);
+ TQString bm = i18n("Expecting %1").arg(scriptArgument);
messg->setText(bm);
emit debugMessage(bm);
@@ -620,7 +620,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) {
if (scriptCommand == "Pause") {
- TQString bm = i18n("Pause %1 seconds").tqarg(scriptArgument);
+ TQString bm = i18n("Pause %1 seconds").arg(scriptArgument);
messg->setText(bm);
emit debugMessage(bm);
@@ -637,7 +637,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) {
timeout_timer->stop();
- TQString bm = i18n("Timeout %1 seconds").tqarg(scriptArgument);
+ TQString bm = i18n("Timeout %1 seconds").arg(scriptArgument);
messg->setText(bm);
emit debugMessage(bm);
@@ -672,7 +672,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) {
}
if (scriptCommand == "ID") {
- TQString bm = i18n("ID %1").tqarg(scriptArgument);
+ TQString bm = i18n("ID %1").arg(scriptArgument);
messg->setText(bm);
emit debugMessage(bm);
@@ -708,7 +708,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) {
}
if (scriptCommand == "Password") {
- TQString bm = i18n("Password %1").tqarg(scriptArgument);
+ TQString bm = i18n("Password %1").arg(scriptArgument);
messg->setText(bm);
emit debugMessage(bm);
@@ -758,7 +758,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) {
ts.insert( vstart, scanvar );
}
- bm = bm.tqarg(ts);
+ bm = bm.arg(ts);
messg->setText(bm);
emit debugMessage(bm);
@@ -782,7 +782,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) {
}
if (scriptCommand == "PWPrompt") {
- TQString bm = i18n("PW Prompt %1").tqarg(scriptArgument);
+ TQString bm = i18n("PW Prompt %1").arg(scriptArgument);
messg->setText(bm);
emit debugMessage(bm);
@@ -807,7 +807,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) {
if (scriptCommand == "LoopStart") {
- TQString bm = i18n("Loop Start %1").tqarg(scriptArgument);
+ TQString bm = i18n("Loop Start %1").arg(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").tqarg(scriptArgument);
+ TQString bm = i18n("Loop End %1").arg(scriptArgument);
if ( loopnest <= 0 ) {
- bm = i18n("LoopEnd without matching Start. Line: %1").tqarg(bm);
+ bm = i18n("LoopEnd without matching Start. Line: %1").arg(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").tqarg(scanvar);
+ TQString sv = i18n("Scan Var: %1").arg(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").tqarg(expectstr);
+ TQString ts = i18n("Found: %1").arg(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").tqarg(loopstr[loopnest]);
+ TQString ts = i18n("Looping: %1").arg(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").tqarg(n);
+ TQString ts = i18n("Scanning: %1").arg(n);
emit debugMessage(ts);
}
@@ -1126,7 +1126,7 @@ void ConnectWidget::setExpect(const TQString &n) {
expecting = true;
expectstr = n;
- TQString ts = i18n("Expecting: %1").tqarg(n);
+ TQString ts = i18n("Expecting: %1").arg(n);
ts.replace(TQRegExp("\n"), "<LF>");
emit debugMessage(ts);
diff --git a/kppp/conwindow.cpp b/kppp/conwindow.cpp
index 14154e69..2e6f2281 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 tqlayout
+ // delete old layout
if(tl1 != 0)
delete tl1;
- // add tqlayout now
+ // add layout 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->tqsetAlignment(AlignRight|AlignVCenter);
- timelabel2->tqsetAlignment(AlignRight|AlignVCenter);
- session_bill->tqsetAlignment(AlignRight|AlignVCenter);
- total_bill->tqsetAlignment(AlignRight|AlignVCenter);
- volinfo->tqsetAlignment(AlignRight|AlignVCenter);
+ info2->setAlignment(AlignRight|AlignVCenter);
+ timelabel2->setAlignment(AlignRight|AlignVCenter);
+ session_bill->setAlignment(AlignRight|AlignVCenter);
+ total_bill->setAlignment(AlignRight|AlignVCenter);
+ volinfo->setAlignment(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->tqsizeHint());
- total_bill->setFixedSize(total_bill->tqsizeHint());
- volinfo->setFixedSize(volinfo->tqsizeHint());
+ session_bill->setFixedSize(session_bill->sizeHint());
+ total_bill->setFixedSize(total_bill->sizeHint());
+ volinfo->setFixedSize(volinfo->sizeHint());
session_bill->setText(s1);
total_bill->setText(s2);
volinfo->setText(s3);
@@ -214,7 +214,7 @@ void ConWindow::accounting(bool on) {
tl1->addSpacing(5);
- setFixedSize(tqsizeHint());
+ setFixedSize(sizeHint());
/*
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")
- .tqarg(gpppdata.accname()).tqarg(info2->text())
- .tqarg(time_string2);
+ .arg(gpppdata.accname()).arg(info2->text())
+ .arg(time_string2);
if(accountingEnabled)
tooltip += i18n("\nSession Bill: %1\nTotal Bill: %2")
- .tqarg(session_bill->text()).tqarg(total_bill->text());
+ .arg(session_bill->text()).arg(total_bill->text());
// volume accounting
if(volumeAccountingEnabled) {
diff --git a/kppp/conwindow.h b/kppp/conwindow.h
index a1d13f09..c2948a3b 100644
--- a/kppp/conwindow.h
+++ b/kppp/conwindow.h
@@ -32,7 +32,7 @@
#include <tqdialog.h>
#include <tqframe.h>
#include <tqevent.h>
-#include <tqlayout.h>
+#include <layout.h>
class PPPStats;
diff --git a/kppp/debug.cpp b/kppp/debug.cpp
index 9b220c20..3dee5797 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->tqsetAlignment( AlignLeft|AlignVCenter );
+ statuslabel->setAlignment( AlignLeft|AlignVCenter );
statuslabel->setGeometry(2, 307, 400, 20);
//statusPageLabel->setFont( KGlobalSettings::generalFont() );
diff --git a/kppp/edit.cpp b/kppp/edit.cpp
index 39f88097..96f36d90 100644
--- a/kppp/edit.cpp
+++ b/kppp/edit.cpp
@@ -25,7 +25,7 @@
#include <string.h>
#include <termios.h>
-#include <tqlayout.h>
+#include <layout.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->tqsetAlignment(AlignTop|AlignLeft);
+ number_label->setAlignment(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->tqsizeHint().height());
+ l->setMinimumHeight(l->sizeHint().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->tqsetAlignment(AlignVCenter);
+ before_connect_l->setAlignment(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->tqsetAlignment(AlignVCenter);
+ command_label->setAlignment(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->tqsetAlignment(AlignVCenter);
+ predisconnect_label->setAlignment(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->tqsetAlignment(AlignVCenter);
+ discommand_label->setAlignment(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->tqsizeHint().width();
+ int width = add->sizeHint().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->tqsizeHint().width();
+ width = remove->sizeHint().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->tqsetAlignment(AlignTop|AlignLeft);
+ servers_label->setAlignment(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->tqlayout();
+ bbox->layout();
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->tqsizeHint().width());
+ slb->setFixedWidth(slb->sizeHint().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 5ed9c459..3aa84116 100644
--- a/kppp/general.cpp
+++ b/kppp/general.cpp
@@ -38,7 +38,7 @@
#include "devices.h"
#include "pppdata.h"
#include <klocale.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqgrid.h>
/////////////////////////////////////////////////////////////////////////////
diff --git a/kppp/iplined.cpp b/kppp/iplined.cpp
index 989c790c..197b13a6 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::tqsizeHint() const {
+TQSize IPLineEdit::sizeHint() const {
TQFontMetrics fm = fontMetrics();
TQSize s;
- s.setHeight(TQLineEdit::tqsizeHint().height());
+ s.setHeight(TQLineEdit::sizeHint().height());
s.setWidth(fm.boundingRect("888.888.888.888XX").width());
return s;
}
diff --git a/kppp/iplined.h b/kppp/iplined.h
index 64a6dcbb..b978b6f5 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 tqsizeHint() const;
+ virtual TQSize sizeHint() const;
};
#endif
diff --git a/kppp/kpppwidget.cpp b/kppp/kpppwidget.cpp
index 28afa910..4b78d330 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->tqsizeHint().width() > minw)
- minw = quit_b->tqsizeHint().width();
+ if(quit_b->sizeHint().width() > minw)
+ minw = quit_b->sizeHint().width();
setup_b = new KPushButton(KGuiItem(i18n("Co&nfigure..."), "configure"), this);
connect( setup_b, TQT_SIGNAL(clicked()), TQT_SLOT(expandbutton()));
- if(setup_b->tqsizeHint().width() > minw)
- minw = setup_b->tqsizeHint().width();
+ if(setup_b->sizeHint().width() > minw)
+ minw = setup_b->sizeHint().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->tqsizeHint().width() > minw)
- minw = help_b->tqsizeHint().width();
+ if(help_b->sizeHint().width() > minw)
+ minw = help_b->sizeHint().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->tqsizeHint().width() > minw)
- minw = connect_b->tqsizeHint().width();
+ if(connect_b->sizeHint().width() > minw)
+ minw = connect_b->sizeHint().width();
quit_b->setFixedWidth(minw);
setup_b->setFixedWidth(minw);
- help_b->setFixedWidth(help_b->tqsizeHint().width());
+ help_b->setFixedWidth(help_b->sizeHint().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(tqsizeHint());
+ setFixedSize(sizeHint());
(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(tqtopLevelWidget());
+ TQRect desk = KGlobalSettings::desktopGeometry(topLevelWidget());
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").tqarg(m_strCmdlModem);
+ string = i18n("No such Modem:\n%1\nFalling back to default").arg(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").tqarg(m_strCmdlAccount);
+ string = i18n("No such Account:\n%1").arg(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);
- tqlayout()->tqinvalidate();
- setFixedSize(tqsizeHint());
+ layout()->invalidate();
+ setFixedSize(sizeHint());
//set the default modem
if(!gpppdata.defaultModem().isEmpty()) {
@@ -598,8 +598,8 @@ void KPPPWidget::sigPPPDDied() {
Modem::modem->unlockdevice();
con->pppdDied();
- Requester::rq->pppdExittqStatus();
- gpppdata.setWaitCallback(gpppdata.callbackType() && Requester::rq->lasttqStatus == E_CBCP_WAIT);
+ Requester::rq->pppdExitStatus();
+ gpppdata.setWaitCallback(gpppdata.callbackType() && Requester::rq->lastStatus == 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->pppdExittqStatus();
- if (Requester::rq->lasttqStatus != 99) { // more recent pppds only
- msg += i18n("<p>Exit status: %1").tqarg(Requester::rq->lasttqStatus);
+ Requester::rq->pppdExitStatus();
+ if (Requester::rq->lastStatus != 99) { // more recent pppds only
+ msg += i18n("<p>Exit status: %1").arg(Requester::rq->lastStatus);
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>")
- .tqarg("http://developer.kde.org/~kppp/index.html")
- .tqarg("http://developer.kde.org/~kppp/index.html");
+ .arg("http://developer.kde.org/~kppp/index.html")
+ .arg("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.").tqarg(gpppdata.pppdPath());
+ "pppd is executable.").arg(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.").tqarg(device);
+ "the setup dialog.").arg(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\"").tqarg(PAP_AUTH_FILE);
+ "file \"%1\"").arg(PAP_AUTH_FILE);
KMessageBox::error(this, s);
return;
}
@@ -775,7 +775,7 @@ void KPPPWidget::beginConnect() {
hide();
- TQString tit = i18n("Connecting to: %1").tqarg(gpppdata.accname());
+ TQString tit = i18n("Connecting to: %1").arg(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\".").tqarg(gpppdata.accountingFile());
+ "ruleset \"%1\".").arg(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->tqsizeHint());
+ icon->setFixedSize(icon->sizeHint());
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->tqsizeHint());
+ cb->setFixedSize(cb->sizeHint());
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->tqlayout();
+ bbox->layout();
l2->addWidget(l);
l2->addWidget(cb);
diff --git a/kppp/loginterm.cpp b/kppp/loginterm.cpp
index 4be1dea0..fd544486 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->tqsizeHint().width() > continue_b->tqsizeHint().width())
- mwidth = cancel_b->tqsizeHint().width();
+ if (cancel_b->sizeHint().width() > continue_b->sizeHint().width())
+ mwidth = cancel_b->sizeHint().width();
else
- mwidth = continue_b->tqsizeHint().width();
+ mwidth = continue_b->sizeHint().width();
cancel_b->setFixedWidth(mwidth + 20);
continue_b->setFixedWidth(mwidth + 20);
diff --git a/kppp/logview/export.cpp b/kppp/logview/export.cpp
index b646acdc..ae665ec5 100644
--- a/kppp/logview/export.cpp
+++ b/kppp/logview/export.cpp
@@ -23,7 +23,7 @@
#include "export.h"
#include <tqpushbutton.h>
-#include <tqtextcodec.h>
+#include <textcodec.h>
class Export;
@@ -73,7 +73,7 @@ ExportWizard::ExportWizard(TQWidget *parent, const TQString &_date)
formatLayout->addSpacing(10);
typeInfo = new TQLabel(formatPage);
- typeInfo->tqsetAlignment(TQt::AlignTop | TQt::WordBreak);
+ typeInfo->setAlignment(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").tqarg(date);
+ TQString title = i18n("Connection log for %1").arg(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::tqfromLatin1(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=")
+ buffer.append(TQString::fromLatin1(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=")
+ TQTextCodec::codecForLocale()->mimeName() +
- TQString::tqfromLatin1("\">"));
+ TQString::fromLatin1("\">"));
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 fb1f0291..91a3ab14 100644
--- a/kppp/logview/export.h
+++ b/kppp/logview/export.h
@@ -25,7 +25,7 @@
#include <tqwidget.h>
#include <tqfile.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqlabel.h>
#include <tqlistbox.h>
#include <tqlineedit.h>
diff --git a/kppp/logview/main.cpp b/kppp/logview/main.cpp
index 6f87ae21..f034c462 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->tqsizeHint().width() + 15,
- mw->tqsizeHint().height() + 120);
+ setMinimumSize(mw->sizeHint().width() + 15,
+ mw->sizeHint().height() + 120);
setCentralWidget(w);
}
diff --git a/kppp/logview/monthly.cpp b/kppp/logview/monthly.cpp
index 831976cc..0844f85a 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").tqarg(KGlobal::locale()->formatNumber((float)bytes / 1024.0, 1));
+ result = i18n("%1 KB").arg(KGlobal::locale()->formatNumber((float)bytes / 1024.0, 1));
else
- result = i18n("%1 MB").tqarg(KGlobal::locale()->formatNumber((float)bytes / 1024.0 / 1024.0, 1));
+ result = i18n("%1 MB").arg(KGlobal::locale()->formatNumber((float)bytes / 1024.0 / 1024.0, 1));
}
static void formatBytesMonth(double bytes, TQString &result) {
int day, days;
- day = TQDate::tqcurrentDate().day();
- days = TQDate::tqcurrentDate().daysInMonth();
+ day = TQDate::currentDate().day();
+ days = TQDate::currentDate().daysInMonth();
bytes = (bytes / day) * days;
if(bytes < 1024)
result.setNum(bytes);
else if(bytes < 1024*1024)
- result = i18n("%1 KB").tqarg(KGlobal::locale()->formatNumber((float)bytes / 1024.0, 1));
+ result = i18n("%1 KB").arg(KGlobal::locale()->formatNumber((float)bytes / 1024.0, 1));
else
- result = i18n("%1 MB").tqarg(KGlobal::locale()->formatNumber((float)bytes / 1024.0 / 1024.0, 1));
+ result = i18n("%1 MB").arg(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").tqarg(sec);
+ result = i18n("%1s").arg(sec);
else if(seconds < 3600)
- result = i18n("%1m %2s").tqarg(seconds/60).tqarg(sec);
+ result = i18n("%1m %2s").arg(seconds/60).arg(sec);
else
result = i18n("%1h %2m %3s")
- .tqarg(seconds/3600)
- .tqarg((seconds % 3600)/60)
- .tqarg(sec);
+ .arg(seconds/3600)
+ .arg((seconds % 3600)/60)
+ .arg(sec);
}
static void formatDurationMonth(int seconds, TQString &result) {
int day, days;
- day = TQDate::tqcurrentDate().day();
- days = TQDate::tqcurrentDate().daysInMonth();
+ day = TQDate::currentDate().day();
+ days = TQDate::currentDate().daysInMonth();
seconds = (seconds / day) * days;
TQString sec;
sec.sprintf("%02d", seconds%60);
if(seconds < 60)
- result = i18n("%1s").tqarg(sec);
+ result = i18n("%1s").arg(sec);
else if(seconds < 3600)
- result = i18n("%1m %2s").tqarg(seconds/60).tqarg(sec);
+ result = i18n("%1m %2s").arg(seconds/60).arg(sec);
else
result = i18n("%1h %2m %3s")
- .tqarg(seconds/3600)
- .tqarg((seconds % 3600)/60)
- .tqarg(sec);
+ .arg(seconds/3600)
+ .arg((seconds % 3600)/60)
+ .arg(sec);
}
static void costsMonth(double costs, double &result) {
int day, days;
- day = TQDate::tqcurrentDate().day();
- days = TQDate::tqcurrentDate().daysInMonth();
+ day = TQDate::currentDate().day();
+ days = TQDate::currentDate().daysInMonth();
result = (costs / day) * days;
@@ -117,7 +117,7 @@ public:
{
}
virtual void paintCell( TQPainter *p, const TQColorGroup & cg,
- int column, int width, int tqalignment );
+ int column, int width, int alignment );
virtual TQString key(int, bool) const;
@@ -125,9 +125,9 @@ public:
};
void LogListItem::paintCell( TQPainter *p, const TQColorGroup & cg,
- int column, int width, int tqalignment )
+ int column, int width, int alignment )
{
- TQListViewItem::paintCell(p, cg, column, width, tqalignment);
+ TQListViewItem::paintCell(p, cg, column, width, alignment);
// double line above sum
//if(!li) {
@@ -212,7 +212,7 @@ MonthlyWidget::MonthlyWidget(TQWidget *parent) :
lv2->setSorting(-1);
lv2->setItemMargin(2);
lv2->setMaximumHeight(100);
- lv2->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Minimum);
+ lv2->setSizePolicy(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->tqsizeHint().height()*2);
+ title->setFixedHeight(title->sizeHint().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->tqlayout();
+ bbox->layout();
currentMonth();
layoutWidget();
@@ -265,8 +265,8 @@ void MonthlyWidget::layoutWidget() {
f2.setPointSize(f2.pointSize() + 1);
f2.setBold(TRUE);
l->setFont(f2);
- l->setFixedHeight(l->tqsizeHint().height());
- l->tqsetAlignment( AlignLeft );
+ l->setFixedHeight(l->sizeHint().height());
+ l->setAlignment( 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::tqcurrentDate())) {
+ if(calendar->month(periodeFirst()) == calendar->month(TQDate::currentDate())) {
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")
- .tqarg(calendar->monthName(startDate))
- .tqarg(calendar->year(startDate));
+ .arg(calendar->monthName(startDate))
+ .arg(calendar->year(startDate));
} else {
exportBttn->setEnabled(false); // nothing to export
t = i18n("No connection log for %1 %2 available")
- .tqarg(calendar->monthName(startDate))
- .tqarg(calendar->year(startDate));
+ .arg(calendar->monthName(startDate))
+ .arg(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::tqcurrentDate();
+ TQDate dt = TQDate::currentDate();
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::tqfromLatin1("%1-%2") // e.g.: June-2001
- .tqarg(calendar->monthName(periodeFirst()))
- .tqarg(calendar->year(periodeFirst()));
+ TQString date = TQString::fromLatin1("%1-%2") // e.g.: June-2001
+ .arg(calendar->monthName(periodeFirst()))
+ .arg(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::tqcurrentDate())) {
+ if(calendar->month(periodeFirst()) == calendar->month(TQDate::currentDate())) {
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::tqcurrentDateTime(), true);
+ TQString datetime = KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime(), true);
exportIFace->addEmptyLine();
- exportIFace->addDataline(i18n("Monthly estimates (%1)").tqarg(datetime),
+ exportIFace->addDataline(i18n("Monthly estimates (%1)").arg(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 2889a5af..71c33739 100644
--- a/kppp/logview/monthly.h
+++ b/kppp/logview/monthly.h
@@ -24,7 +24,7 @@
#include "log.h"
#include <tqwidget.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqlabel.h>
#include <tqpushbutton.h>
#include <tqvaluelist.h>
diff --git a/kppp/macros.h b/kppp/macros.h
index b631516a..1b5120ac 100644
--- a/kppp/macros.h
+++ b/kppp/macros.h
@@ -3,13 +3,13 @@
#ifndef __MACROS__H__
#define __MACROS__H__
-#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());
+#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());
#endif
diff --git a/kppp/main.cpp b/kppp/main.cpp
index b6bb6c57..753291ba 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.").tqarg(pidfile);
+ TQString err_msg = i18n("kppp can't create or read from\n%1.").arg(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.")
- .tqarg(pidfile).tqarg(pid);
+ .arg(pidfile).arg(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 db73149f..f2eff97f 100644
--- a/kppp/miniterm.cpp
+++ b/kppp/miniterm.cpp
@@ -39,7 +39,7 @@
#include <kmenubar.h>
#include <kstdguiitem.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqlabel.h>
#include <tqtimer.h>
#include <tqpopupmenu.h>
@@ -79,11 +79,11 @@ MiniTerm::MiniTerm(TQWidget *parent, const char *name)
setupToolbar();
- TQVBoxLayout *tqlayout=new TQVBoxLayout(this);
- tqlayout->addWidget(menubar);
- tqlayout->addWidget(toolbar);
- tqlayout->addWidget(terminal);
- tqlayout->addWidget(statusbar);
+ TQVBoxLayout *layout=new TQVBoxLayout(this);
+ layout->addWidget(menubar);
+ layout->addWidget(toolbar);
+ layout->addWidget(terminal);
+ layout->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 2416e4c5..f867bf78 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 <tqlayout.h>
+#include <layout.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->tqsizeHint()); e->setFixedHeight(e->tqsizeHint().height()); e->setText(""); e->setMaxLength(MODEMSTR_SIZE);
+#define ADJUSTEDIT(e) e->setText("XXXXXXXXqy"); e->setMinimumSize(e->sizeHint()); e->setFixedHeight(e->sizeHint().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->tqsizeHint().width()); l->setFixedHeight(TQLineEdit(dummyWidget).tqsizeHint().height()); l->tqsetAlignment(AlignCenter); l->setFrameStyle(TQFrame::WinPanel|TQFrame::Sunken); l->setLineWidth(2);
+#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);
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 tqlayout
+ // toplevel layout
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->tqsizeHint().height());
+ preinitslider->setFixedHeight(preinitslider->sizeHint().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:").tqarg(i + 1),
+ TQLabel *initLabel = new TQLabel(i18n("Initialization string %1:").arg(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->tqsizeHint().height());
+ initslider->setFixedHeight(initslider->sizeHint().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->tqsizeHint().height());
+ durationslider->setFixedHeight(durationslider->sizeHint().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->tqsizeHint().height());
+ slider->setFixedHeight(slider->sizeHint().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->tqsizeHint().height());
- volume_off->setMinimumWidth((int)(volume_off->tqsizeHint().width() / 2));
+ volume_off->setFixedHeight(volume_off->sizeHint().height());
+ volume_off->setMinimumWidth((int)(volume_off->sizeHint().width() / 2));
volume_medium = new TQLineEdit(dummyWidget);
- volume_medium->setFixedHeight(volume_medium->tqsizeHint().height());
- volume_medium->setMinimumWidth((int)(volume_medium->tqsizeHint().width() / 2));
+ volume_medium->setFixedHeight(volume_medium->sizeHint().height());
+ volume_medium->setMinimumWidth((int)(volume_medium->sizeHint().width() / 2));
volume_high = new TQLineEdit(dummyWidget);
- volume_high->setFixedHeight(volume_high->tqsizeHint().height());
- volume_high->setMinimumWidth((int)(volume_high->tqsizeHint().width() / 2));
+ volume_high->setFixedHeight(volume_high->sizeHint().height());
+ volume_high->setMinimumWidth((int)(volume_high->sizeHint().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 35eff389..2729ede3 100644
--- a/kppp/modemdb.cpp
+++ b/kppp/modemdb.cpp
@@ -34,7 +34,7 @@
#include <tqlabel.h>
#include <kbuttonbox.h>
-#include <tqlayout.h>
+#include <layout.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->tqsetAlignment(AlignLeft | WordBreak);
+ l1->setAlignment(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->tqlayout();
+ bbox->layout();
tl->addWidget(bbox);
- setFixedSize(tqsizeHint());
+ setFixedSize(sizeHint());
// set up modem database
db = new ModemDatabase();
diff --git a/kppp/modeminfo.cpp b/kppp/modeminfo.cpp
index d242c4f4..89fbff72 100644
--- a/kppp/modeminfo.cpp
+++ b/kppp/modeminfo.cpp
@@ -26,7 +26,7 @@
#include <unistd.h>
#include <tqregexp.h>
-#include <tqlayout.h>
+#include <layout.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->tqsetAlignment(AlignCenter);
+ statusBar->setAlignment(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->tqsizeHint().width() * 12) / 10);
- statusBar->setFixedHeight(statusBar->tqsizeHint().height() + 4);
+ statusBar->setFixedWidth((statusBar->sizeHint().width() * 12) / 10);
+ statusBar->setFixedHeight(statusBar->sizeHint().height() + 4);
// set original text
statusBar->setText(i18n("Looking for modem..."));
- progressBar->setFixedHeight(statusBar->tqminimumSize().height());
+ progressBar->setFixedHeight(statusBar->minimumSize().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(tqsizeHint());
+ setFixedSize(sizeHint());
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(tqsizeHint());
+ setMinimumSize(sizeHint());
}
diff --git a/kppp/modems.cpp b/kppp/modems.cpp
index 55f8f629..ea4a461e 100644
--- a/kppp/modems.cpp
+++ b/kppp/modems.cpp
@@ -27,7 +27,7 @@
#include <tqdir.h>
#include <stdlib.h>
-#include <tqlayout.h>
+#include <layout.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->tqsizeHint().width();
+ min = edit_b->sizeHint().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\"?")
- .tqarg(modemlist_l->text(modemlist_l->currentItem()));
+ .arg(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 49676ddd..ba8508e5 100644
--- a/kppp/newwidget.cpp
+++ b/kppp/newwidget.cpp
@@ -1,6 +1,6 @@
/////////////////////////////////////////////////////////////////////////////
//
-// functions generating tqlayout-aware widgets
+// functions generating layout-aware widgets
//
/////////////////////////////////////////////////////////////////////////////
@@ -9,7 +9,7 @@
TQLineEdit *newLineEdit(int visiblewidth, TQWidget *parent) {
TQLineEdit *l = new TQLineEdit(parent);
if(visiblewidth == 0)
- l->setMinimumWidth(l->tqsizeHint().width());
+ l->setMinimumWidth(l->sizeHint().width());
else
l->setFixedWidth(l->fontMetrics().width('H') * visiblewidth);
diff --git a/kppp/newwidget.h b/kppp/newwidget.h
index 07129c74..2cb2e717 100644
--- a/kppp/newwidget.h
+++ b/kppp/newwidget.h
@@ -1,6 +1,6 @@
/////////////////////////////////////////////////////////////////////////////
//
-// functions generating tqlayout-aware widgets
+// functions generating layout-aware widgets
//
/////////////////////////////////////////////////////////////////////////////
diff --git a/kppp/opener.cpp b/kppp/opener.cpp
index 0d46edd9..5d90cc0e 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 pppdExittqStatus = -1;
+static int pppdExitStatus = -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 PPPDExittqStatus:
+ case PPPDExitStatus:
Debug("Opener: received PPPDExitStatus");
MY_ASSERT(len == sizeof(struct PPPDExitStatusRequest));
- response.status = pppdExittqStatus;
+ response.status = pppdExitStatus;
sendResponse(&response);
break;
@@ -519,7 +519,7 @@ bool Opener::execpppd(const char *arguments) {
if(ttyfd<0)
return false;
- pppdExittqStatus = -1;
+ pppdExitStatus = -1;
switch(pppdPid = fork())
{
@@ -711,10 +711,10 @@ void sighandler_child(int) {
Debug("It was pppd that died");
pppdPid = -1;
if((WIFEXITED(status))) {
- pppdExittqStatus = (WEXITSTATUS(status));
- Debug2("pppd exited with return value %d\n", pppdExittqStatus);
+ pppdExitStatus = (WEXITSTATUS(status));
+ Debug2("pppd exited with return value %d\n", pppdExitStatus);
} else {
- pppdExittqStatus = 99;
+ pppdExitStatus = 99;
Debug("pppd exited abnormally.");
}
Debug2("Sending %i a SIGUSR1\n", getppid());
diff --git a/kppp/opener.h b/kppp/opener.h
index 99568f5d..812ec9ba 100644
--- a/kppp/opener.h
+++ b/kppp/opener.h
@@ -34,7 +34,7 @@ public:
SetSecret, RemoveSecret,
SetHostname,
ExecPPPDaemon, KillPPPDaemon,
- PPPDExittqStatus,
+ PPPDExitStatus,
Stop };
enum Auth { PAP = 1, CHAP };
enum { MaxPathLen = 30, MaxStrLen = 40, MaxArgs = 100 };
diff --git a/kppp/pppdargs.cpp b/kppp/pppdargs.cpp
index 56814f34..1b696811 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 <tqlayout.h>
+#include <layout.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->tqlayout();
+ bbox->layout();
l->addWidget(bbox);
- setFixedSize(tqsizeHint());
+ setFixedSize(sizeHint());
//load info from gpppdata
init();
diff --git a/kppp/pppdata.cpp b/kppp/pppdata.cpp
index ceb8298b..a983a8b4 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").tqarg(pppdVer).tqarg(pppdMod).tqarg(pppdPatch);
+ return TQString("%1.%2.%3").arg(pppdVer).arg(pppdMod).arg(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").tqarg(modname());
+ TQString newname = i18n("%1_copy").arg(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").tqarg(accname());
+ TQString newname = i18n("%1_copy").arg(accname());
newaccount();
diff --git a/kppp/ppplog.cpp b/kppp/ppplog.cpp
index a5075b3e..d634b366 100644
--- a/kppp/ppplog.cpp
+++ b/kppp/ppplog.cpp
@@ -40,7 +40,7 @@
#include <tqdialog.h>
#include <tqregexp.h>
#include <tqmultilineedit.h>
-#include <tqlayout.h>
+#include <layout.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.").tqarg(str);
+ " the connection has failed.").arg(str);
result.append(msg);
}
}
@@ -202,8 +202,8 @@ void PPPL_ShowLog() {
bool foundConnect = false;
bool foundLCP = gpppdata.getPPPDebug();
- TQString lcp = TQString::tqfromLatin1("[LCP");
- TQString conn = TQString::tqfromLatin1("Connect:");
+ TQString lcp = TQString::fromLatin1("[LCP");
+ TQString conn = TQString::fromLatin1("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->tqlayout();
+ bbox->layout();
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->tqsizeHint());
+ dlg->setFixedSize(dlg->sizeHint());
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").tqarg(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").arg(s);
KMessageBox::information(0, msg);
}
delete dlg;
diff --git a/kppp/pppstatdlg.cpp b/kppp/pppstatdlg.cpp
index b5b12f42..b85fe2ce 100644
--- a/kppp/pppstatdlg.cpp
+++ b/kppp/pppstatdlg.cpp
@@ -23,7 +23,7 @@
*/
-#include <tqlayout.h>
+#include <layout.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->tqsetAlignment(AlignVCenter|AlignLeft);
+ pixmap_l->setAlignment(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]->tqsetAlignment(TQt::AlignRight);
- labelb2[i]->tqsetAlignment(TQt::AlignRight);
- labela2[i]->setFixedSize(labela2[i]->tqsizeHint());
- labelb2[i]->setFixedSize(labelb2[i]->tqsizeHint());
+ labela2[i]->setAlignment(TQt::AlignRight);
+ labelb2[i]->setAlignment(TQt::AlignRight);
+ labela2[i]->setFixedSize(labela2[i]->sizeHint());
+ labelb2[i]->setFixedSize(labelb2[i]->sizeHint());
labela2[i]->setText("");
labelb2[i]->setText("");
- // add to tqlayout
+ // add to layout
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->tqsizeHint().height());
- cancelbutton->setMinimumWidth(TQMAX(cancelbutton->tqsizeHint().width(), 70));
+ cancelbutton->setFixedHeight(cancelbutton->sizeHint().height());
+ cancelbutton->setMinimumWidth(TQMAX(cancelbutton->sizeHint().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(tqsizeHint());
+ setFixedSize(sizeHint());
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")
- .tqarg(KGlobal::locale()->formatNumber((float)last_max / 1024.0, 1))
- .tqarg(KGlobal::locale()->formatNumber((float)max / 1024.0, 1));
+ .arg(KGlobal::locale()->formatNumber((float)last_max / 1024.0, 1))
+ .arg(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 fb4d6428..29a87e77 100644
--- a/kppp/pppstats.cpp
+++ b/kppp/pppstats.cpp
@@ -127,25 +127,25 @@ void PPPStats::clear()
compressed = 0;
packetsunc = 0;
packetsoutunc = 0;
- iotqStatus = BytesNone;
+ ioStatus = BytesNone;
}
void PPPStats::timerClick() {
- enum IOtqStatus newtqStatus;
+ enum IOStatus newStatus;
doStats();
if((ibytes != ibytes_last) && (obytes != obytes_last))
- newtqStatus = BytesBoth;
+ newStatus = BytesBoth;
else if(ibytes != ibytes_last)
- newtqStatus = BytesIn;
+ newStatus = BytesIn;
else if(obytes != obytes_last)
- newtqStatus = BytesOut;
+ newStatus = BytesOut;
else
- newtqStatus = BytesNone;
+ newStatus = BytesNone;
- if(newtqStatus != iotqStatus)
- emit statsChanged(iotqStatus = newtqStatus);
+ if(newStatus != ioStatus)
+ emit statsChanged(ioStatus = newStatus);
ibytes_last = ibytes;
obytes_last = obytes;
diff --git a/kppp/pppstats.h b/kppp/pppstats.h
index 91e4e9e0..4fdf17bd 100644
--- a/kppp/pppstats.h
+++ b/kppp/pppstats.h
@@ -65,7 +65,7 @@ public:
TQString local_ip_address;
TQString remote_ip_address;
- enum IOtqStatus { BytesNone = 0, BytesIn, BytesOut, BytesBoth };
+ enum IOStatus { 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 IOtqStatus iotqStatus;
+ enum IOStatus ioStatus;
TQTimer *timer;
};
diff --git a/kppp/providerdb.cpp b/kppp/providerdb.cpp
index 97d13612..2012ba18 100644
--- a/kppp/providerdb.cpp
+++ b/kppp/providerdb.cpp
@@ -31,7 +31,7 @@
#include <tqdir.h>
#include <tqlabel.h>
-#include <tqlayout.h>
+#include <layout.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(tqminimumSize());
+ // resize(minimumSize());
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].tqunicode());
+ tmp.sprintf("%%%03i", s[i].unicode());
s1 += tmp;
}
}
diff --git a/kppp/pwentry.cpp b/kppp/pwentry.cpp
index c3025762..270b4b72 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 = tqgeometry();
+ TQRect pos = geometry();
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 dcb28fcb..b5450929 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;
- lasttqStatus = -1;
+ lastStatus = -1;
}
Requester::~Requester() {
@@ -167,7 +167,7 @@ bool Requester::recvResponse() {
kdDebug(5002) << "response.status: " << response.status << endl;
}
- lasttqStatus = response.status;
+ lastStatus = response.status;
return (response.status == 0);
}
@@ -306,10 +306,10 @@ bool Requester::killPPPDaemon() {
return recvResponse();
}
-int Requester::pppdExittqStatus()
+int Requester::pppdExitStatus()
{
struct PPPDExitStatusRequest req;
- req.header.type = Opener::PPPDExittqStatus;
+ req.header.type = Opener::PPPDExitStatus;
sendRequest((struct RequestHeader *) &req, sizeof(req));
return recvResponse();
}
diff --git a/kppp/requester.h b/kppp/requester.h
index 46626df5..ea415df0 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 pppdExittqStatus();
+ int pppdExitStatus();
bool stop();
public:
static Requester *rq;
- int lasttqStatus;
+ int lastStatus;
private:
bool sendRequest(struct RequestHeader *request, int len);
diff --git a/kppp/ruleset.cpp b/kppp/ruleset.cpp
index ef9d9517..723d5f2b 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::tqcurrentDate().year(),
+ if(!parseEntries(token, TQDate::currentDate().year(),
t1, t2, costs, len, after))
return FALSE;
diff --git a/kppp/runtests.cpp b/kppp/runtests.cpp
index 23f2196d..a520d116 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.").tqarg(f));
+ "and has the SUID bit set.").arg(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.").tqarg(file);
+ "read and write permissions.").arg(file);
KMessageBox::error(0, msgstr);
warning ++;
}
diff --git a/kppp/scriptedit.cpp b/kppp/scriptedit.cpp
index afa88821..21ed43fc 100644
--- a/kppp/scriptedit.cpp
+++ b/kppp/scriptedit.cpp
@@ -26,7 +26,7 @@
*/
#include "scriptedit.h"
-#include <tqlayout.h>
+#include <layout.h>
#include <tqcombobox.h>
#include <tqlineedit.h>