summaryrefslogtreecommitdiffstats
path: root/kteatime
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:59:40 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:59:40 -0600
commit59a076e9336f1eebda8650437e6bc61077be1516 (patch)
treea2e4658f80b77270d84b50bd116f84eaea7efab0 /kteatime
parent3ee504ecba6caf3c2609a8648fe3659f2b541544 (diff)
downloadtdetoys-59a076e9336f1eebda8650437e6bc61077be1516.tar.gz
tdetoys-59a076e9336f1eebda8650437e6bc61077be1516.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'kteatime')
-rw-r--r--kteatime/tealist.cpp6
-rw-r--r--kteatime/toplevel.cpp18
2 files changed, 12 insertions, 12 deletions
diff --git a/kteatime/tealist.cpp b/kteatime/tealist.cpp
index dcc4209..ae32339 100644
--- a/kteatime/tealist.cpp
+++ b/kteatime/tealist.cpp
@@ -15,12 +15,12 @@ TQString int2time(int time)
{
TQString str;
if (time / 60)
- str.append(i18n("%1 min").tqarg(time / 60));
+ str.append(i18n("%1 min").arg(time / 60));
if (time % 60)
if (str.isEmpty())
- str.append(i18n("%1 s").tqarg(time % 60));
+ str.append(i18n("%1 s").arg(time % 60));
else
- str.append(i18n(" %1 s").tqarg(time % 60));
+ str.append(i18n(" %1 s").arg(time % 60));
return str;
}
diff --git a/kteatime/toplevel.cpp b/kteatime/toplevel.cpp
index 4b27f30..5deb404 100644
--- a/kteatime/toplevel.cpp
+++ b/kteatime/toplevel.cpp
@@ -207,7 +207,7 @@ void TopLevel::resizeEvent ( TQResizeEvent * )
teaNotReadyPixmap = loadSizedIcon("tea_not_ready", width());
teaAnim1Pixmap = loadSizedIcon("tea_anim1", width());
teaAnim2Pixmap = loadSizedIcon("tea_anim2", width());
- tqrepaint();
+ repaint();
}
/** Handle mousePressEvent */
@@ -302,7 +302,7 @@ void TopLevel::timerEvent(TQTimerEvent *)
menu->setItemChecked(current_selected, true);
}
- TQString teaMessage = i18n("The %1 is now ready!").tqarg(current_name);
+ TQString teaMessage = i18n("The %1 is now ready!").arg(current_name);
// invoke action
if (useNotify) {
KNotifyClient::event(winId(), "tea", teaMessage);
@@ -317,7 +317,7 @@ void TopLevel::timerEvent(TQTimerEvent *)
teaMessage, teaAnim1Pixmap, this, "popup", 0);
// FIXME: does auto-deletion work without timeout?
setToolTip(teaMessage);
- tqrepaint();
+ repaint();
} else {
// timer not yet run out; just update tray-icon (if configured)...
if (useTrayVis) {
@@ -325,18 +325,18 @@ void TopLevel::timerEvent(TQTimerEvent *)
if (pDone - percentDone > 8) {
// update icon not every second, but only if somewhat noticable
percentDone = pDone;
- tqrepaint();
+ repaint();
}
}
// ...and Tooltip
TQString min = int2time(seconds);
- setToolTip(i18n("%1 left for %2").tqarg(min).tqarg(current_name));
+ setToolTip(i18n("%1 left for %2").arg(min).arg(current_name));
}
} else {
// no tea is steeping; just animate icon
if (ready) {
firstFrame = !firstFrame;
- tqrepaint();
+ repaint();
}
}
}
@@ -447,7 +447,7 @@ void TopLevel::start()
ready = false;
enable_menuEntries(); // disable "start", enable "stop"
- tqrepaint();
+ repaint();
}
}
@@ -467,7 +467,7 @@ void TopLevel::stop()
}
setToolTip(i18n("The Tea Cooker"), true);
- tqrepaint();
+ repaint();
}
/* open dialog to start an 'anonymous' tea */
@@ -721,7 +721,7 @@ void TopLevel::config()
rightside->addWidget(editgroup, 0, 0);
TQHBox *propbox = new TQHBox(editgroup);
- // FIXME: - must enforce correct vertical tqalignment of each label-editor pair
+ // FIXME: - must enforce correct vertical alignment of each label-editor pair
// (better use one HBox for each label-editor pair?)
TQVBox *propleft = new TQVBox(propbox);
TQVBox *propright = new TQVBox(propbox);