aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/util/qquickpath.cpp
diff options
context:
space:
mode:
authorKaj Grönholm <kaj.gronholm@qt.io>2024-06-27 16:08:57 +0300
committerKaj Grönholm <kaj.gronholm@qt.io>2024-07-05 19:29:22 +0300
commit3423163a25d79a9484451af12d95280daa98a5d4 (patch)
tree9e54e73547770a312832383fac715c302bfd8553 /src/quick/util/qquickpath.cpp
parentfcc4fd3400bb7bd852af43f594187d6a66cc696b (diff)
Make QQuickPath asynchronous a public property
Starting from Qt 6.9 make this property publicly available. Task-number: QTBUG-126662 Change-Id: Ie5a560de5172cda2e22db3756c9bd3a249d97fd4 Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
Diffstat (limited to 'src/quick/util/qquickpath.cpp')
-rw-r--r--src/quick/util/qquickpath.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/quick/util/qquickpath.cpp b/src/quick/util/qquickpath.cpp
index d8cb6650dc..f212d0a20d 100644
--- a/src/quick/util/qquickpath.cpp
+++ b/src/quick/util/qquickpath.cpp
@@ -766,6 +766,15 @@ bool QQuickPath::simplify() const
return d->simplify;
}
+/*! \qmlproperty bool QtQuick::Path::asynchronous
+ \since 6.9
+
+ When set to true, the path will be processed asynchronously. This is an optimization
+ to process the path only once, after all the methods that possibly affect the path.
+ This means that when set to \c true, the updated path is not available immediately
+ after e.g. adjusting \l startX, \l scale or appending an element, only after the Qt
+ event loop has been processed. The default value is \c false.
+*/
bool QQuickPath::isAsynchronous() const
{
Q_D(const QQuickPath);
@@ -779,6 +788,7 @@ void QQuickPath::setAsynchronous(bool a)
return;
d->asynchronous = a;
+ emit asynchronousChanged();
}
/*!