diff options
Diffstat (limited to 'src/qml/jsruntime/qv4engine.cpp')
| -rw-r--r-- | src/qml/jsruntime/qv4engine.cpp | 5 |
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() |
