summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--knetload/knetload.cpp10
-rw-r--r--knetload/statdock.cpp22
-rw-r--r--knetload/statpopup.cpp14
3 files changed, 23 insertions, 23 deletions
diff --git a/knetload/knetload.cpp b/knetload/knetload.cpp
index aaec347..3ce2b81 100644
--- a/knetload/knetload.cpp
+++ b/knetload/knetload.cpp
@@ -328,8 +328,8 @@ void KNetLoad::takeReadingInternal() {
fullReading = i18n(
"Current In: %1 KBit/s, Total In: %2 MB.\n"
"Current Out: %3 KBit/s, Total Out: %4 MB.")
- .tqarg(KGlobal::locale()->formatNumber((int)((bitRateIn + 50) / 100) / 10.0)).tqarg(KGlobal::locale()->formatNumber(proc->totalMbIn()))
- .tqarg(KGlobal::locale()->formatNumber((int)((bitRateOut + 50) / 100) / 10.0)).tqarg(KGlobal::locale()->formatNumber(proc->totalMbOut()));
+ .arg(KGlobal::locale()->formatNumber((int)((bitRateIn + 50) / 100) / 10.0)).arg(KGlobal::locale()->formatNumber(proc->totalMbIn()))
+ .arg(KGlobal::locale()->formatNumber((int)((bitRateOut + 50) / 100) / 10.0)).arg(KGlobal::locale()->formatNumber(proc->totalMbOut()));
}
void KNetLoad::updateDeviceMenu(KPopupMenu* menu) {
@@ -369,7 +369,7 @@ void KNetLoad::updateDeviceMenu(KPopupMenu* menu) {
menu->setItemChecked(otherId, false);
} else {
menu->changeItem(otherId, SmallIcon("devotheron"),
- TQString(i18n("Other (%1)...")).tqarg(dev));
+ TQString(i18n("Other (%1)...")).arg(dev));
menu->setItemChecked(otherId, true);
}
}
@@ -403,7 +403,7 @@ void KNetLoad::updateScaleInMenu(KPopupMenu* menu) {
if (found)
menu->changeItem(otherId, i18n("Other..."));
else {
- TQString text = i18n("Other (%1KBit/s)...").tqarg(int(((float) scaleIn) / 1000));
+ TQString text = i18n("Other (%1KBit/s)...").arg(int(((float) scaleIn) / 1000));
menu->changeItem(otherId, text);
}
@@ -441,7 +441,7 @@ void KNetLoad::updateScaleOutMenu(KPopupMenu* menu) {
if (found)
menu->changeItem(otherId, i18n("Other..."));
else {
- TQString text = i18n("Other (%1KBit/s)...").tqarg(int(((float) scaleOut) / 1000));
+ TQString text = i18n("Other (%1KBit/s)...").arg(int(((float) scaleOut) / 1000));
menu->changeItem(otherId, text);
}
diff --git a/knetload/statdock.cpp b/knetload/statdock.cpp
index e8e4f37..ec73794 100644
--- a/knetload/statdock.cpp
+++ b/knetload/statdock.cpp
@@ -78,54 +78,54 @@ void StatDock::resizeEvent ( TQResizeEvent * )
delete[] bufUpperOld;
delete[] bufLowerOld;
- tqrepaint();
+ repaint();
}
void StatDock::setGrid(bool set) {
grid = set;
- tqrepaint();
+ repaint();
}
void StatDock::setActive(bool set) {
active = set;
- tqrepaint();
+ repaint();
}
void StatDock::setSoft(bool set) {
soft = set;
- tqrepaint();
+ repaint();
}
void StatDock::setSplit(bool set) {
split = set;
- tqrepaint();
+ repaint();
}
void StatDock::setLabelled(bool set) {
labelled = set;
- tqrepaint();
+ repaint();
}
void StatDock::setLabel(const char* set) {
label = set;
- tqrepaint();
+ repaint();
}
void StatDock::setFill(int set) {
fill = set;
- tqrepaint();
+ repaint();
}
void StatDock::setColor(const TQColor& set) {
colorUpper = set;
colorUpperInactive = colorUpper.dark();
- tqrepaint();
+ repaint();
}
void StatDock::clearHistory(void) {
for (i = 0; i < DOCK_SIZE; i++)
bufUpper[i] = bufLower[i] = 0;
- tqrepaint();
+ repaint();
}
void StatDock::addPercentReading(int upper, int lower) {
@@ -164,7 +164,7 @@ void StatDock::addPercentReading(int upper, int lower) {
}
// Refresh the diagram.
- tqrepaint();
+ repaint();
}
void StatDock::paintEvent(TQPaintEvent*) {
diff --git a/knetload/statpopup.cpp b/knetload/statpopup.cpp
index 81e52d0..a501437 100644
--- a/knetload/statpopup.cpp
+++ b/knetload/statpopup.cpp
@@ -395,13 +395,13 @@ void StatPopup::setupActions() {
color[0] = defaultDockColor(0);
color[0] = config->readColorEntry("Color0", color);
- actColor0 = new KAction(TQString(i18n("Color (%1)...")).tqarg(dockName(0)),
+ actColor0 = new KAction(TQString(i18n("Color (%1)...")).arg(dockName(0)),
"color0", 0, TQT_TQOBJECT(this), TQT_SLOT(selectColor0()), coll, "color0");
actColor0->setEnabled(false);
color[1] = defaultDockColor(1);
color[1] = config->readColorEntry("Color1", color + 1);
- actColor1 = new KAction(TQString(i18n("Color (%1)...")).tqarg(dockName(1)),
+ actColor1 = new KAction(TQString(i18n("Color (%1)...")).arg(dockName(1)),
"color1", 0, TQT_TQOBJECT(this), TQT_SLOT(selectColor1()), coll, "color1");
actColor1->setEnabled(false);
@@ -424,7 +424,7 @@ void StatPopup::paintEvent(TQPaintEvent*) {
// Draw the text.
p.setFont(font());
- p.setPen(tqcolorGroup().foreground());
+ p.setPen(colorGroup().foreground());
p.drawText(rect(), AlignHCenter | AlignVCenter, fullReading);
}
@@ -437,7 +437,7 @@ void StatPopup::mousePressEvent(TQMouseEvent* e) {
isDragged = true;
relX = e->x();
relY = e->y();
- tqrepaint();
+ repaint();
}
}
@@ -450,7 +450,7 @@ void StatPopup::mouseReleaseEvent(TQMouseEvent* e) {
// The end of a drag operation.
move(e->globalX() - relX, e->globalY() - relY);
isDragged = false;
- tqrepaint();
+ repaint();
}
void StatPopup::closeEvent(TQCloseEvent* e) {
@@ -492,7 +492,7 @@ void StatPopup::takeReading() {
if (resizeRequested)
resizeToText();
- tqrepaint();
+ repaint();
}
}
@@ -502,7 +502,7 @@ void StatPopup::resizeToText() {
TQSize size = fontMetrics().size(0, fullReading);
resize(size.width() + 2 * TEXT_EXPANSION_HORIZONTAL,
size.height() + 2 * TEXT_EXPANSION_VERTICAL);
- tqrepaint();
+ repaint();
}