History

some modal clean up

Dante Ruiz committed 9 years ago

Commit 835b2381 parent 89f5e519 files · +91 −28Browse files

Showing the changes to libraries/script-engine/src/TabletScriptingInterface.cpp (1 of 9 files). Show all

Unified · Split

libraries/script-engine/src/TabletScriptingInterface.cpp+12−0
@@ -250,6 +250,18 @@ static QString getUsername() { · 249 unmodified lines
250 }250 }
251}251}
252 252
253bool 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
253void TabletProxy::setQmlTabletRoot(QQuickItem* qmlTabletRoot, QObject* qmlOffscreenSurface) {265void 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;