aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4engine.cpp')
-rw-r--r--src/qml/jsruntime/qv4engine.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4engine.cpp b/src/qml/jsruntime/qv4engine.cpp
index e984288ff3..d8dfd80459 100644
--- a/src/qml/jsruntime/qv4engine.cpp
+++ b/src/qml/jsruntime/qv4engine.cpp
@@ -946,6 +946,11 @@ void ExecutionEngine::setPreviewing(bool enabled)
hasPreview.storeRelease(enabled);
}
+bool ExecutionEngine::isPreviewing()
+{
+ return hasPreview.loadAcquire();
+}
+
#endif // QT_CONFIG(qml_debug)
void ExecutionEngine::initRootContext()