diff options
| author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2025-01-10 16:22:49 +0100 |
|---|---|---|
| committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2025-01-15 19:36:52 +0100 |
| commit | 0c33ebfe10d014c36ed77bdc3849101f3383217b (patch) | |
| tree | 7f0dccefbce3940b9f410cf1080f72e936337e25 /src/webenginequick/api/qquickwebenginesettings.cpp | |
| parent | ef9daacaa8c45bdff1d9bc14c14608e46c381bbb (diff) | |
Rename JSTouchEventsEnabled to TouchEventsApiEnabled
Api-review
Pick-to: 6.9
Change-Id: I06c5400c50f30c7473bee8e82f9f63fad2875930
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'src/webenginequick/api/qquickwebenginesettings.cpp')
| -rw-r--r-- | src/webenginequick/api/qquickwebenginesettings.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/webenginequick/api/qquickwebenginesettings.cpp b/src/webenginequick/api/qquickwebenginesettings.cpp index 29bf0f93e..fadc1bfef 100644 --- a/src/webenginequick/api/qquickwebenginesettings.cpp +++ b/src/webenginequick/api/qquickwebenginesettings.cpp @@ -519,7 +519,7 @@ bool QQuickWebEngineSettings::scrollAnimatorEnabled() const } /*! - \qmlproperty bool WebEngineSettings::jsTouchEventsEnabled + \qmlproperty bool WebEngineSettings::touchEventsApiEnabled \since QtWebEngine 6.9 Enables support for JavaScript touch events API, meaning \c ontouchstart, @@ -532,9 +532,9 @@ bool QQuickWebEngineSettings::scrollAnimatorEnabled() const Enabled by default if a touch device detected by the system and disabled otherwise. */ -bool QQuickWebEngineSettings::jsTouchEventsEnabled() const +bool QQuickWebEngineSettings::touchEventsApiEnabled() const { - return d_ptr->testAttribute(QWebEngineSettings::JSTouchEventsEnabled); + return d_ptr->testAttribute(QWebEngineSettings::TouchEventsApiEnabled); } /*! @@ -921,12 +921,12 @@ void QQuickWebEngineSettings::setImageAnimationPolicy( Q_EMIT imageAnimationPolicyChanged(); } -void QQuickWebEngineSettings::setJSTouchEventsEnabled(bool on) +void QQuickWebEngineSettings::setTouchEventsApiEnabled(bool on) { - bool wasOn = d_ptr->testAttribute(QWebEngineSettings::JSTouchEventsEnabled); - d_ptr->setAttribute(QWebEngineSettings::JSTouchEventsEnabled, on); + bool wasOn = d_ptr->testAttribute(QWebEngineSettings::TouchEventsApiEnabled); + d_ptr->setAttribute(QWebEngineSettings::TouchEventsApiEnabled, on); if (wasOn != on) - Q_EMIT jsTouchEventsEnabledChanged(); + Q_EMIT touchEventsApiEnabledChanged(); } QT_END_NAMESPACE |
