summaryrefslogtreecommitdiffstats
path: root/kbabel/common/diff.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kbabel/common/diff.h
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz
tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbabel/common/diff.h')
-rw-r--r--kbabel/common/diff.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/kbabel/common/diff.h b/kbabel/common/diff.h
index 4e7dfb72..2ce055bf 100644
--- a/kbabel/common/diff.h
+++ b/kbabel/common/diff.h
@@ -35,8 +35,8 @@
#ifndef DIFF_H
#define DIFF_H
-#include <qvaluevector.h>
-#include <qstringlist.h>
+#include <tqvaluevector.h>
+#include <tqstringlist.h>
typedef enum
{
@@ -54,7 +54,7 @@ typedef enum
* @short Word-by-word diff algorithm
* @author Nick Shaforostoff <[email protected]>
*/
- QString wordDiff(const QString& oldString, const QString& newString);
+ TQString wordDiff(const TQString& oldString, const TQString& newString);
/**
@@ -66,22 +66,22 @@ typedef enum
class LCSprinter
{
public:
- LCSprinter(const QStringList &s_1, const QStringList &s_2, QValueVector<LCSMarker>* b_, const uint nT_, uint index);
+ LCSprinter(const TQStringList &s_1, const TQStringList &s_2, TQValueVector<LCSMarker>* b_, const uint nT_, uint index);
void printLCS(uint index);
- inline QString getString();
+ inline TQString getString();
~LCSprinter() {};
private:
- QStringList s1, s2, resultString;
+ TQStringList s1, s2, resultString;
uint nT;//for use 1d vector as 2d
- QValueVector<LCSMarker> *b;
- QStringList::iterator it1, it2;
+ TQValueVector<LCSMarker> *b;
+ TQStringList::iterator it1, it2;
};
-inline QString LCSprinter::getString()
+inline TQString LCSprinter::getString()
{
- return resultString.join("").replace(QChar('\n'), ""); //w/o replace we'd get whole line colored
+ return resultString.join("").replace(TQChar('\n'), ""); //w/o replace we'd get whole line colored
}
#endif // DIFF_H