(cherry picked from commit b50e20c5457151368b7ead81bf44ce678de9dbe2)
Showing the changes to libraries/script-engine/src/TabletScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -212,6 +212,14 @@ void TabletProxy::gotoMenuScreen() { · 211 unmodified lines | ||
| 212 | 212 | } |
| 213 | 213 | } |
| 214 | 214 | |
| 215 | +void TabletProxy::loadQMLSource(const QVariant& path) { | |
| 216 | + if (_qmlTabletRoot) { | |
| 217 | + if (_state != State::QML) { | |
| 218 | + QMetaObject::invokeMethod(_qmlTabletRoot, "loadSource", Q_ARG(const QVariant&, path)); | |
| 219 | + _state = State::QML; | |
| 220 | + } | |
| 221 | + } | |
| 222 | +} | |
| 215 | 223 | void TabletProxy::gotoHomeScreen() { |
| 216 | 224 | if (_qmlTabletRoot) { |
| 217 | 225 | if (_state != State::Home) { |