diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-07-02 14:38:52 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-07-02 14:38:52 (GMT) |
commit | 2b54a6831ebf8af0540c72519173a9c5e2d94aef (patch) | |
tree | 7b019f9d143e4c52f6df3fc220b06671b65ad2c1 /src/script/api/qscriptstring.cpp | |
parent | 0357533025a7e4066def7665f3c77337f1ab21db (diff) | |
download | Qt-2b54a6831ebf8af0540c72519173a9c5e2d94aef.zip Qt-2b54a6831ebf8af0540c72519173a9c5e2d94aef.tar.gz Qt-2b54a6831ebf8af0540c72519173a9c5e2d94aef.tar.bz2 |
implement a fair amount of the QScriptClass functionality
Enumeration is missing, as is the ability to change the class
of an object after it has been created.
Diffstat (limited to 'src/script/api/qscriptstring.cpp')
-rw-r--r-- | src/script/api/qscriptstring.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/script/api/qscriptstring.cpp b/src/script/api/qscriptstring.cpp index 89ac4ac..ce38d81 100644 --- a/src/script/api/qscriptstring.cpp +++ b/src/script/api/qscriptstring.cpp @@ -138,7 +138,9 @@ bool QScriptString::isValid() const bool QScriptString::operator==(const QScriptString &other) const { Q_D(const QScriptString); - return (d == other.d_func()); + // ### change back once proper string handles are implemented + return toString() == other.toString(); +// return (d == other.d_func()); } /*! @@ -148,7 +150,9 @@ bool QScriptString::operator==(const QScriptString &other) const bool QScriptString::operator!=(const QScriptString &other) const { Q_D(const QScriptString); - return (d != other.d_func()); + // ### change back once proper string handles are implemented + return toString() != other.toString(); +// return (d != other.d_func()); } /*! |