From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- khtml/dom/dom_string.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'khtml/dom/dom_string.h') diff --git a/khtml/dom/dom_string.h b/khtml/dom/dom_string.h index f14a2aea9..3fe725f68 100644 --- a/khtml/dom/dom_string.h +++ b/khtml/dom/dom_string.h @@ -23,7 +23,7 @@ #define _DOM_DOMString_h_ #include -#include +#include #include @@ -33,7 +33,7 @@ class DOMStringImpl; /** * This class implements the basic string we use in the DOM. We do not use - * QString for 2 reasons: Memory overhead, and the missing explicit sharing + * TQString for 2 reasons: Memory overhead, and the missing explicit sharing * of strings we need for the DOM. * * All DOMStrings are explicitly shared (they behave like pointers), meaning @@ -50,8 +50,8 @@ public: */ DOMString() : impl(0) {} - DOMString(const QChar *str, uint len); - DOMString(const QString &); + DOMString(const TQChar *str, uint len); + DOMString(const TQString &); DOMString(const char *str); DOMString(DOMStringImpl *i); @@ -76,9 +76,9 @@ public: * The character at position i of the DOMString. If i >= length(), the * character returned will be 0. */ - const QChar &operator [](unsigned int i) const; + const TQChar &operator [](unsigned int i) const; - int find(const QChar c, int start = 0) const; + int find(const TQChar c, int start = 0) const; uint length() const; void truncate( unsigned int len ); @@ -97,8 +97,8 @@ public: */ DOMString upper() const; - QChar *unicode() const; - QString string() const; + TQChar *unicode() const; + TQString string() const; int toInt() const; bool percentage(int &_percentage) const; @@ -129,10 +129,10 @@ inline kndbgstream &operator<<(kndbgstream &stream, const DOMString &) { #endif KHTML_EXPORT bool operator==( const DOMString &a, const DOMString &b ); -KHTML_EXPORT bool operator==( const DOMString &a, const QString &b ); +KHTML_EXPORT bool operator==( const DOMString &a, const TQString &b ); KHTML_EXPORT bool operator==( const DOMString &a, const char *b ); inline bool operator!=( const DOMString &a, const DOMString &b ) { return !(a==b); } -inline bool operator!=( const DOMString &a, const QString &b ) { return !(a==b); } +inline bool operator!=( const DOMString &a, const TQString &b ) { return !(a==b); } inline bool operator!=( const DOMString &a, const char *b ) { return !(a==b); } inline bool strcmp( const DOMString &a, const DOMString &b ) { return a != b; } -- cgit v1.2.1