diff options
author | Sebastian Sauer <sebastian.sauer.ford@kdab.com> | 2014-08-12 18:53:00 +0700 |
---|---|---|
committer | Sebastian Sauer <sebastian.sauer@kdab.com> | 2014-08-25 17:29:21 +0200 |
commit | cae7176827eb3c23428cfcd8f6dabb00f8dcaef3 (patch) | |
tree | 948a32f66791eff082363c6aca5a1436cd4e9353 /src/qml/qml/qqmlscriptstring.h | |
parent | 99fd3a6b22a7eabf2aff656a942b0b7e32093254 (diff) |
QSM: Reintroduce guard argument evaluation
Implements the suggestion from Simon Hausmann (codereview 89716
from 08-05 14:46) to use QQmlScriptString rather then the previous
used MetaObject-manipulation.
This also introduces comparison operators for QQmlScriptString
to be able to determinate if a QQmlScriptString changed what
is needed cause there is otherwise no way to access (all) the
needed details within QQmlScriptStringPrivate.
Change-Id: I198479eac8fd37cbdd98a99aacdd8eebf7b75d21
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlscriptstring.h')
-rw-r--r-- | src/qml/qml/qqmlscriptstring.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlscriptstring.h b/src/qml/qml/qqmlscriptstring.h index 1ff8903993..ccbe90535b 100644 --- a/src/qml/qml/qqmlscriptstring.h +++ b/src/qml/qml/qqmlscriptstring.h @@ -58,6 +58,9 @@ public: QQmlScriptString &operator=(const QQmlScriptString &); + bool operator==(const QQmlScriptString &) const; + bool operator!=(const QQmlScriptString &) const; + bool isEmpty() const; bool isUndefinedLiteral() const; |