Remove additional unneeded tq method conversions

pull/1/head
Timothy Pearson 13 years ago
parent 7799395a85
commit 39fb493553

@ -328,8 +328,8 @@ void KNetLoad::takeReadingInternal() {
fullReading = i18n( fullReading = i18n(
"Current In: %1 KBit/s, Total In: %2 MB.\n" "Current In: %1 KBit/s, Total In: %2 MB.\n"
"Current Out: %3 KBit/s, Total Out: %4 MB.") "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())) .arg(KGlobal::locale()->formatNumber((int)((bitRateIn + 50) / 100) / 10.0)).arg(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)((bitRateOut + 50) / 100) / 10.0)).arg(KGlobal::locale()->formatNumber(proc->totalMbOut()));
} }
void KNetLoad::updateDeviceMenu(KPopupMenu* menu) { void KNetLoad::updateDeviceMenu(KPopupMenu* menu) {
@ -369,7 +369,7 @@ void KNetLoad::updateDeviceMenu(KPopupMenu* menu) {
menu->setItemChecked(otherId, false); menu->setItemChecked(otherId, false);
} else { } else {
menu->changeItem(otherId, SmallIcon("devotheron"), menu->changeItem(otherId, SmallIcon("devotheron"),
TQString(i18n("Other (%1)...")).tqarg(dev)); TQString(i18n("Other (%1)...")).arg(dev));
menu->setItemChecked(otherId, true); menu->setItemChecked(otherId, true);
} }
} }
@ -403,7 +403,7 @@ void KNetLoad::updateScaleInMenu(KPopupMenu* menu) {
if (found) if (found)
menu->changeItem(otherId, i18n("Other...")); menu->changeItem(otherId, i18n("Other..."));
else { 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); menu->changeItem(otherId, text);
} }
@ -441,7 +441,7 @@ void KNetLoad::updateScaleOutMenu(KPopupMenu* menu) {
if (found) if (found)
menu->changeItem(otherId, i18n("Other...")); menu->changeItem(otherId, i18n("Other..."));
else { 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); menu->changeItem(otherId, text);
} }

@ -78,54 +78,54 @@ void StatDock::resizeEvent ( TQResizeEvent * )
delete[] bufUpperOld; delete[] bufUpperOld;
delete[] bufLowerOld; delete[] bufLowerOld;
tqrepaint(); repaint();
} }
void StatDock::setGrid(bool set) { void StatDock::setGrid(bool set) {
grid = set; grid = set;
tqrepaint(); repaint();
} }
void StatDock::setActive(bool set) { void StatDock::setActive(bool set) {
active = set; active = set;
tqrepaint(); repaint();
} }
void StatDock::setSoft(bool set) { void StatDock::setSoft(bool set) {
soft = set; soft = set;
tqrepaint(); repaint();
} }
void StatDock::setSplit(bool set) { void StatDock::setSplit(bool set) {
split = set; split = set;
tqrepaint(); repaint();
} }
void StatDock::setLabelled(bool set) { void StatDock::setLabelled(bool set) {
labelled = set; labelled = set;
tqrepaint(); repaint();
} }
void StatDock::setLabel(const char* set) { void StatDock::setLabel(const char* set) {
label = set; label = set;
tqrepaint(); repaint();
} }
void StatDock::setFill(int set) { void StatDock::setFill(int set) {
fill = set; fill = set;
tqrepaint(); repaint();
} }
void StatDock::setColor(const TQColor& set) { void StatDock::setColor(const TQColor& set) {
colorUpper = set; colorUpper = set;
colorUpperInactive = colorUpper.dark(); colorUpperInactive = colorUpper.dark();
tqrepaint(); repaint();
} }
void StatDock::clearHistory(void) { void StatDock::clearHistory(void) {
for (i = 0; i < DOCK_SIZE; i++) for (i = 0; i < DOCK_SIZE; i++)
bufUpper[i] = bufLower[i] = 0; bufUpper[i] = bufLower[i] = 0;
tqrepaint(); repaint();
} }
void StatDock::addPercentReading(int upper, int lower) { void StatDock::addPercentReading(int upper, int lower) {
@ -164,7 +164,7 @@ void StatDock::addPercentReading(int upper, int lower) {
} }
// Refresh the diagram. // Refresh the diagram.
tqrepaint(); repaint();
} }
void StatDock::paintEvent(TQPaintEvent*) { void StatDock::paintEvent(TQPaintEvent*) {

@ -395,13 +395,13 @@ void StatPopup::setupActions() {
color[0] = defaultDockColor(0); color[0] = defaultDockColor(0);
color[0] = config->readColorEntry("Color0", color); 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"); "color0", 0, TQT_TQOBJECT(this), TQT_SLOT(selectColor0()), coll, "color0");
actColor0->setEnabled(false); actColor0->setEnabled(false);
color[1] = defaultDockColor(1); color[1] = defaultDockColor(1);
color[1] = config->readColorEntry("Color1", color + 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"); "color1", 0, TQT_TQOBJECT(this), TQT_SLOT(selectColor1()), coll, "color1");
actColor1->setEnabled(false); actColor1->setEnabled(false);
@ -437,7 +437,7 @@ void StatPopup::mousePressEvent(TQMouseEvent* e) {
isDragged = true; isDragged = true;
relX = e->x(); relX = e->x();
relY = e->y(); relY = e->y();
tqrepaint(); repaint();
} }
} }
@ -450,7 +450,7 @@ void StatPopup::mouseReleaseEvent(TQMouseEvent* e) {
// The end of a drag operation. // The end of a drag operation.
move(e->globalX() - relX, e->globalY() - relY); move(e->globalX() - relX, e->globalY() - relY);
isDragged = false; isDragged = false;
tqrepaint(); repaint();
} }
void StatPopup::closeEvent(TQCloseEvent* e) { void StatPopup::closeEvent(TQCloseEvent* e) {
@ -492,7 +492,7 @@ void StatPopup::takeReading() {
if (resizeRequested) if (resizeRequested)
resizeToText(); resizeToText();
tqrepaint(); repaint();
} }
} }
@ -502,7 +502,7 @@ void StatPopup::resizeToText() {
TQSize size = fontMetrics().size(0, fullReading); TQSize size = fontMetrics().size(0, fullReading);
resize(size.width() + 2 * TEXT_EXPANSION_HORIZONTAL, resize(size.width() + 2 * TEXT_EXPANSION_HORIZONTAL,
size.height() + 2 * TEXT_EXPANSION_VERTICAL); size.height() + 2 * TEXT_EXPANSION_VERTICAL);
tqrepaint(); repaint();
} }

Loading…
Cancel
Save