summaryrefslogtreecommitdiffstats
path: root/ktouch/src/ktouchutils.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
commit0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch)
tree2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /ktouch/src/ktouchutils.cpp
parent83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff)
downloadtdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz
tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ktouch/src/ktouchutils.cpp')
-rw-r--r--ktouch/src/ktouchutils.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/ktouch/src/ktouchutils.cpp b/ktouch/src/ktouchutils.cpp
index af039f2c..a59dbfd9 100644
--- a/ktouch/src/ktouchutils.cpp
+++ b/ktouch/src/ktouchutils.cpp
@@ -10,25 +10,25 @@
* (at your option) any later version. *
***************************************************************************/
-#include <qtextstream.h>
-#include <qstringlist.h>
-#include <qmap.h>
+#include <tqtextstream.h>
+#include <tqstringlist.h>
+#include <tqmap.h>
#include <kdebug.h>
#include "ktouchutils.h"
-QString format_speed(double speed) {
+TQString format_speed(double speed) {
unsigned int mins = static_cast<unsigned int>(speed);
unsigned int secs = static_cast<unsigned int>(speed*60) - mins*60;
- return QString("%1' %2''").arg(mins).arg(secs);
+ return TQString("%1' %2''").arg(mins).arg(secs);
}
-void sort_lists(QStringList& text, QStringList& data) {
+void sort_lists(TQStringList& text, TQStringList& data) {
if (text.count() != data.count()) return; // invalid input, no sorting possible
- QMap<QString, QString> sort_map;
- QStringList::const_iterator key_it = text.constBegin();
- QStringList::const_iterator val_it = data.constBegin();
+ TQMap<TQString, TQString> sort_map;
+ TQStringList::const_iterator key_it = text.constBegin();
+ TQStringList::const_iterator val_it = data.constBegin();
while (key_it != text.constEnd()) {
// kdDebug() << *key_it << " " << *val_it << endl;
sort_map[*key_it++] = *val_it++;