diff options
Diffstat (limited to 'kppp/pppstatdlg.cpp')
-rw-r--r-- | kppp/pppstatdlg.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
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); |