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
250250 }
251251 }
252252
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+
253265 void TabletProxy::setQmlTabletRoot(QQuickItem* qmlTabletRoot, QObject* qmlOffscreenSurface) {
254266 std::lock_guard<std::mutex> guard(_mutex);
255267 _qmlOffscreenSurface = qmlOffscreenSurface;