summaryrefslogtreecommitdiffstats
path: root/src/script/api/qscriptstring.cpp
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-07-02 14:38:52 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-07-02 14:38:52 (GMT)
commit2b54a6831ebf8af0540c72519173a9c5e2d94aef (patch)
tree7b019f9d143e4c52f6df3fc220b06671b65ad2c1 /src/script/api/qscriptstring.cpp
parent0357533025a7e4066def7665f3c77337f1ab21db (diff)
downloadQt-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.cpp8
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());
}
/*!