Showing the changes to libraries/script-engine/src/TabletScriptingInterface.cpp (1 of 3 files). Show all
Unified · Split
| @@ -250,6 +250,15 @@ static QString getUsername() { · 249 unmodified lines | |||
| 250 | } | 250 | } |
| 251 | } | 251 | } |
| 252 | 252 | ||
| 253 | void TabletProxy::initialScreen(const QVariant& url) { | ||
| 254 | if (getQmlTablet()) { | ||
| 255 | pushOntoStack(url); | ||
| 256 | } else { | ||
| 257 | _initialScreen = true; | ||
| 258 | _initialPath = url; | ||
| 259 | } | ||
| 260 | } | ||
| 261 | |||
| 253 | bool TabletProxy::isMessageDialogOpen() { | 262 | bool TabletProxy::isMessageDialogOpen() { |
| 254 | if (_qmlTabletRoot) { | 263 | if (_qmlTabletRoot) { |
| 255 | QVariant result; | 264 | QVariant result; |
| @@ -299,6 +308,11 @@ void TabletProxy::setQmlTabletRoot(QQuickItem* qmlTabletRoot, QObject* qmlOffscr · 43 unmodified lines | |||
| 299 | QMetaObject::invokeMethod(_qmlTabletRoot, "setUsername", Q_ARG(const QVariant&, QVariant(getUsername()))); | 308 | QMetaObject::invokeMethod(_qmlTabletRoot, "setUsername", Q_ARG(const QVariant&, QVariant(getUsername()))); |
| 300 | } | 309 | } |
| 301 | }); | 310 | }); |
| 311 | |||
| 312 | if (_initialScreen) { | ||
| 313 | pushOntoStack(_initialPath); | ||
| 314 | _initialScreen = false; | ||
| 315 | } | ||
| 302 | } else { | 316 | } else { |
| 303 | removeButtonsFromHomeScreen(); | 317 | removeButtonsFromHomeScreen(); |
| 304 | _state = State::Uninitialized; | 318 | _state = State::Uninitialized; |