summaryrefslogtreecommitdiffstats
path: root/khtml/dom/dom_string.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/dom/dom_string.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/dom/dom_string.h')
-rw-r--r--khtml/dom/dom_string.h20
1 files changed, 10 insertions, 10 deletions
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 <kdebug.h>
-#include <qstring.h>
+#include <tqstring.h>
#include <kdelibs_export.h>
@@ -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; }