aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2023-08-22 15:57:59 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-08-23 21:36:02 +0000
commit49aaa5dfdba6bc206a9372a96cc66dfba7e75be0 (patch)
treebd91871ca9a6ff87ae611d43613c70c0cbaeb544
parente7f7cf7d1e4751a7240d01f2aa88062db2565331 (diff)
Remove "is" prefix from isTimestampsEnabled
Drop the bad looking "is" prefix. "are" is not used in practice, so rather follow the existing pattern of e.g. QWidget::updatesEnabled(). Change-Id: I07c47ec45ce9190c1d445235b7cfe6be98716c7a Reviewed-by: Christian Strømme <christian.stromme@qt.io> (cherry picked from commit 51c73b9df60c738c933d7c727062c5ba6da09c7e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/quick/items/qquickgraphicsconfiguration.cpp4
-rw-r--r--src/quick/items/qquickgraphicsconfiguration.h2
-rw-r--r--src/quick/scenegraph/qsgrenderloop.cpp2
-rw-r--r--src/quick/scenegraph/qsgrhisupport.cpp2
-rw-r--r--src/quick/scenegraph/qsgthreadedrenderloop.cpp2
5 files changed, 6 insertions, 6 deletions
diff --git a/src/quick/items/qquickgraphicsconfiguration.cpp b/src/quick/items/qquickgraphicsconfiguration.cpp
index 8c9bd1b2cb..c399b308f0 100644
--- a/src/quick/items/qquickgraphicsconfiguration.cpp
+++ b/src/quick/items/qquickgraphicsconfiguration.cpp
@@ -589,7 +589,7 @@ bool QQuickGraphicsConfiguration::isDebugMarkersEnabled() const
\since 6.6
- \sa isTimestampsEnabled(), setDebugMarkers()
+ \sa timestampsEnabled(), setDebugMarkers()
*/
void QQuickGraphicsConfiguration::setTimestamps(bool enable)
{
@@ -607,7 +607,7 @@ void QQuickGraphicsConfiguration::setTimestamps(bool enable)
\since 6.6
\sa setTimestamps()
*/
-bool QQuickGraphicsConfiguration::isTimestampsEnabled() const
+bool QQuickGraphicsConfiguration::timestampsEnabled() const
{
return d->flags.testFlag(QQuickGraphicsConfigurationPrivate::EnableTimestamps);
}
diff --git a/src/quick/items/qquickgraphicsconfiguration.h b/src/quick/items/qquickgraphicsconfiguration.h
index be383e2653..00a599f1e6 100644
--- a/src/quick/items/qquickgraphicsconfiguration.h
+++ b/src/quick/items/qquickgraphicsconfiguration.h
@@ -35,7 +35,7 @@ public:
bool isDebugMarkersEnabled() const;
void setTimestamps(bool enable);
- bool isTimestampsEnabled() const;
+ bool timestampsEnabled() const;
void setPreferSoftwareDevice(bool enable);
bool prefersSoftwareDevice() const;
diff --git a/src/quick/scenegraph/qsgrenderloop.cpp b/src/quick/scenegraph/qsgrenderloop.cpp
index a89e766df3..d1c1be6e6d 100644
--- a/src/quick/scenegraph/qsgrenderloop.cpp
+++ b/src/quick/scenegraph/qsgrenderloop.cpp
@@ -708,7 +708,7 @@ void QSGGuiThreadRenderLoop::renderWindow(QQuickWindow *window)
int((renderTime - syncTime) / 1000000),
int((swapTime - renderTime) / 1000000),
int(data.timeBetweenRenders.restart()));
- if (!qFuzzyIsNull(lastCompletedGpuTime) && cd->graphicsConfig.isTimestampsEnabled()) {
+ if (!qFuzzyIsNull(lastCompletedGpuTime) && cd->graphicsConfig.timestampsEnabled()) {
qCDebug(QSG_LOG_TIME_RENDERLOOP, "[window %p][gui thread] syncAndRender: last retrieved GPU frame time was %.4f ms",
window,
lastCompletedGpuTime * 1000.0);
diff --git a/src/quick/scenegraph/qsgrhisupport.cpp b/src/quick/scenegraph/qsgrhisupport.cpp
index 119956724f..487553ec69 100644
--- a/src/quick/scenegraph/qsgrhisupport.cpp
+++ b/src/quick/scenegraph/qsgrhisupport.cpp
@@ -1105,7 +1105,7 @@ QSGRhiSupport::RhiCreateResult QSGRhiSupport::createRhi(QQuickWindow *window, QS
const bool debugLayer = wd->graphicsConfig.isDebugLayerEnabled();
const bool debugMarkers = wd->graphicsConfig.isDebugMarkersEnabled();
- const bool timestamps = wd->graphicsConfig.isTimestampsEnabled();
+ const bool timestamps = wd->graphicsConfig.timestampsEnabled();
const bool preferSoftware = wd->graphicsConfig.prefersSoftwareDevice();
const bool pipelineCacheSave = !wd->graphicsConfig.pipelineCacheSaveFile().isEmpty()
|| (wd->graphicsConfig.isAutomaticPipelineCacheEnabled()
diff --git a/src/quick/scenegraph/qsgthreadedrenderloop.cpp b/src/quick/scenegraph/qsgthreadedrenderloop.cpp
index f9e9de140f..8f0786ca3b 100644
--- a/src/quick/scenegraph/qsgthreadedrenderloop.cpp
+++ b/src/quick/scenegraph/qsgthreadedrenderloop.cpp
@@ -799,7 +799,7 @@ void QSGRenderThread::syncAndRender()
int((syncTime/1000000)),
int((renderTime - syncTime) / 1000000),
int((threadTimer.nsecsElapsed() - renderTime) / 1000000));
- if (!qFuzzyIsNull(lastCompletedGpuTime) && cd->graphicsConfig.isTimestampsEnabled()) {
+ if (!qFuzzyIsNull(lastCompletedGpuTime) && cd->graphicsConfig.timestampsEnabled()) {
qCDebug(QSG_LOG_TIME_RENDERLOOP, "[window %p][render thread %p] syncAndRender: last retrieved GPU frame time was %.4f ms",
window,
QThread::currentThread(),