Showing the changes to libraries/script-engine/src/TabletScriptingInterface.cpp (1 of 9 files). Show all
Unified · Split
| @@ -250,6 +250,18 @@ static QString getUsername() { · 249 unmodified lines | |||
| 250 | } | 250 | } |
| 251 | } | 251 | } |
| 252 | 252 | ||
| 253 | bool TabletProxy::isMessageDialogOpen() { | ||
| 254 | if (_qmlTabletRoot) { | ||
| 255 | QVariant result; | ||
| 256 | QMetaObject::invokeMethod(_qmlTabletRoot, "isDialogOpen",Qt::DirectConnection, | ||
| 257 | Q_RETURN_ARG(QVariant, result)); | ||
| 258 | |||
| 259 | return result.toBool(); | ||
| 260 | } | ||
| 261 | |||
| 262 | return false; | ||
| 263 | } | ||
| 264 | |||
| 253 | void TabletProxy::setQmlTabletRoot(QQuickItem* qmlTabletRoot, QObject* qmlOffscreenSurface) { | 265 | void TabletProxy::setQmlTabletRoot(QQuickItem* qmlTabletRoot, QObject* qmlOffscreenSurface) { |
| 254 | std::lock_guard<std::mutex> guard(_mutex); | 266 | std::lock_guard<std::mutex> guard(_mutex); |
| 255 | _qmlOffscreenSurface = qmlOffscreenSurface; | 267 | _qmlOffscreenSurface = qmlOffscreenSurface; |