summaryrefslogtreecommitdiffstats
path: root/khtml/rendering/bidi.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /khtml/rendering/bidi.h
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khtml/rendering/bidi.h')
-rw-r--r--khtml/rendering/bidi.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/khtml/rendering/bidi.h b/khtml/rendering/bidi.h
index 4d6b6aaf1..15a9ab906 100644
--- a/khtml/rendering/bidi.h
+++ b/khtml/rendering/bidi.h
@@ -23,7 +23,7 @@
#ifndef BIDI_H
#define BIDI_H
-#include <qstring.h>
+#include <tqstring.h>
namespace khtml {
class RenderArena;
@@ -33,7 +33,7 @@ namespace khtml {
class BidiContext {
public:
- BidiContext(unsigned char level, QChar::Direction embedding, BidiContext *parent = 0, bool override = false);
+ BidiContext(unsigned char level, TQChar::Direction embedding, BidiContext *parent = 0, bool override = false);
~BidiContext();
void ref() const;
@@ -41,8 +41,8 @@ namespace khtml {
unsigned char level;
bool override : 1;
- QChar::Direction dir : 5;
- QChar::Direction basicDir : 5;
+ TQChar::Direction dir : 5;
+ TQChar::Direction basicDir : 5;
BidiContext *parent;
@@ -52,21 +52,21 @@ namespace khtml {
};
struct BidiRun {
- BidiRun(int _start, int _stop, RenderObject *_obj, BidiContext *context, QChar::Direction dir)
+ BidiRun(int _start, int _stop, RenderObject *_obj, BidiContext *context, TQChar::Direction dir)
: start( _start ), stop( _stop ), obj( _obj ), box(0), nextRun(0)
{
- if(dir == QChar::DirON) dir = context->dir;
+ if(dir == TQChar::DirON) dir = context->dir;
level = context->level;
// add level of run (cases I1 & I2)
if( level % 2 ) {
- if(dir == QChar::DirL || dir == QChar::DirAN || dir == QChar::DirEN)
+ if(dir == TQChar::DirL || dir == TQChar::DirAN || dir == TQChar::DirEN)
level++;
} else {
- if( dir == QChar::DirR )
+ if( dir == TQChar::DirR )
level++;
- else if( dir == QChar::DirAN || dir == QChar::DirEN)
+ else if( dir == TQChar::DirAN || dir == TQChar::DirEN)
level += 2;
}
}