diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-09-02 05:02:46 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-09-02 05:02:46 (GMT) |
commit | c3af2cb805d1ac5f7a5a944a23dc4c4238f8f530 (patch) | |
tree | 1e3c816b06ae07fcc530b7bac890c68892deedb0 /src/declarative/qml/qmlengine_p.h | |
parent | b52bfac9d05de835682b9c2b2e1d79e0246e708a (diff) | |
download | Qt-c3af2cb805d1ac5f7a5a944a23dc4c4238f8f530.zip Qt-c3af2cb805d1ac5f7a5a944a23dc4c4238f8f530.tar.gz Qt-c3af2cb805d1ac5f7a5a944a23dc4c4238f8f530.tar.bz2 |
Provide some color manipulation functions.
These may not be the final location for these, but it allows us to
start testing.
Diffstat (limited to 'src/declarative/qml/qmlengine_p.h')
-rw-r--r-- | src/declarative/qml/qmlengine_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlengine_p.h b/src/declarative/qml/qmlengine_p.h index b3c6279..1e251cc 100644 --- a/src/declarative/qml/qmlengine_p.h +++ b/src/declarative/qml/qmlengine_p.h @@ -223,6 +223,10 @@ public: static QScriptValue size(QScriptContext*, QScriptEngine*); static QScriptValue rect(QScriptContext*, QScriptEngine*); + static QScriptValue lighter(QScriptContext*, QScriptEngine*); + static QScriptValue darker(QScriptContext*, QScriptEngine*); + static QScriptValue tint(QScriptContext*, QScriptEngine*); + static QScriptEngine *getScriptEngine(QmlEngine *e) { return &e->d_func()->scriptEngine; } static QmlEngine *getEngine(QScriptEngine *e) { return static_cast<QmlScriptEngine*>(e)->p->q_func(); } static QmlEnginePrivate *get(QmlEngine *e) { return e->d_func(); } |