summaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-06-24 20:39:35 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-06-26 14:42:36 +0200
commitb60f516aca5196a49e3cc53e7620c2b5da3f507c (patch)
tree4ae7777e708906e1d4e45a087a90e8ef8b983842 /tests/manual
parent6f837d6f071e646282090c405ecfeb1e30454f42 (diff)
Fix qsizetype fallout in rhi manual tests
Change-Id: I574a2930b5eeb4b3e1f3c6fca6d70dbda64ec324 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/rhi/qrhiprof/qrhiprof.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/manual/rhi/qrhiprof/qrhiprof.cpp b/tests/manual/rhi/qrhiprof/qrhiprof.cpp
index 7e3027a951..aa09f78bf3 100644
--- a/tests/manual/rhi/qrhiprof/qrhiprof.cpp
+++ b/tests/manual/rhi/qrhiprof/qrhiprof.cpp
@@ -578,7 +578,7 @@ int main(int argc, char **argv)
QLabel *buffersLabel = new QLabel;
QObject::connect(&tracker, &Tracker::buffersTouched, buffersLabel, [buffersLabel, &tracker] {
const QString msg = QString::asprintf("%d buffers with ca. %lld bytes of current memory (sub)allocations (peak %lld) + %lld bytes of known staging buffers (peak %lld)",
- tracker.m_buffers.count(),
+ int(tracker.m_buffers.count()),
tracker.m_totalBufferApproxByteSize, tracker.m_peakBufferApproxByteSize,
tracker.m_totalStagingBufferApproxByteSize, tracker.m_peakStagingBufferApproxByteSize);
buffersLabel->setText(msg);
@@ -588,7 +588,7 @@ int main(int argc, char **argv)
QLabel *texturesLabel = new QLabel;
QObject::connect(&tracker, &Tracker::texturesTouched, texturesLabel, [texturesLabel, &tracker] {
const QString msg = QString::asprintf("%d textures with ca. %lld bytes of current memory (sub)allocations (peak %lld) + %lld bytes of known staging buffers (peak %lld)",
- tracker.m_textures.count(),
+ int(tracker.m_textures.count()),
tracker.m_totalTextureApproxByteSize, tracker.m_peakTextureApproxByteSize,
tracker.m_totalTextureStagingBufferApproxByteSize, tracker.m_peakTextureStagingBufferApproxByteSize);
texturesLabel->setText(msg);