diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /khtml/rendering/break_lines.h | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-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/break_lines.h')
-rw-r--r-- | khtml/rendering/break_lines.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/khtml/rendering/break_lines.h b/khtml/rendering/break_lines.h index e33fce247..5176e5fb0 100644 --- a/khtml/rendering/break_lines.h +++ b/khtml/rendering/break_lines.h @@ -1,7 +1,7 @@ #ifndef BREAK_LINES_H #define BREAK_LINES_H -#include <qstring.h> +#include <tqstring.h> namespace khtml { @@ -12,8 +12,8 @@ namespace khtml { Korean, Chinese ones should work as well */ /* - dontbreakbefore[] contains characters not covered by QChar::Punctuation_Close that shouldn't be broken before. - chars included in QChar::Punctuation_Close are listed below.(look at UAX #14) + dontbreakbefore[] contains characters not covered by TQChar::Punctuation_Close that shouldn't be broken before. + chars included in TQChar::Punctuation_Close are listed below.(look at UAX #14) - 3001 ideographic comma - 3002 ideographic full stop - FE50 small comma @@ -88,7 +88,7 @@ namespace khtml { 0xFF70 //halfwidth katakana-hiragana prolonged sound mark }; - // characters that aren't covered by QChar::Punctuation_Open + // characters that aren't covered by TQChar::Punctuation_Open const ushort dontbreakafter[] = { 0x3012, //postal mark 0xFF03, //full width pound mark @@ -116,12 +116,12 @@ namespace khtml { } } - bool isBreakableThai( const QChar *string, const int pos, const int len); + bool isBreakableThai( const TQChar *string, const int pos, const int len); void cleanup_thaibreaks(); - inline bool isBreakable( const QChar *str, const int pos, int len ) + inline bool isBreakable( const TQChar *str, const int pos, int len ) { - const QChar *c = str+pos; + const TQChar *c = str+pos; unsigned short ch = c->unicode(); if ( ch > 0xff ) { // not latin1, need to do more sophisticated checks for asian fonts @@ -140,10 +140,10 @@ namespace khtml { return false; // never break before first character // check for simple punctuation cases - QChar::Category cat = c->category(); - if ( cat == QChar::Punctuation_Close || - cat == QChar::Punctuation_Other || - (str+(pos-1))->category() == QChar::Punctuation_Open ) + TQChar::Category cat = c->category(); + if ( cat == TQChar::Punctuation_Close || + cat == TQChar::Punctuation_Other || + (str+(pos-1))->category() == TQChar::Punctuation_Open ) return false; // do binary search in dontbreak[] |