Commit Graph

9 Commits

Author SHA1 Message Date
Paul Lemire 5bdfb0c7bb Fix compilation of Manual Tests
- Following deprecation of context-less lambda connects
- Also ran clang-format on modified files

Pick-to: 6.7
Change-Id: Ib867ddae709c685591497bcaf349ed4b3c1a222e
Reviewed-by: Mike Krus <mike.krus@kdab.com>
2024-06-11 16:29:51 +02:00
Lucie Gérard 28bba0ad93 Correct license for test files
According to QUIP-18 [1], all test files should be
LicenseRef-Qt-Commercial OR GPL-3.0-only

[1]: https://contribute.qt-project.org/quips/18

Pick-to: 6.7
Task-number: QTBUG-121787
Change-Id: I966d4033a73aacabb39f582270f2f1c18e2bcecd
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2024-04-23 06:28:57 +00:00
Marc Mutz 168de02734 Port from qAsConst() to std::as_const()
We've been requiring C++17 since Qt 6.0, and our qAsConst use finally
starts to bother us (QTBUG-99313), so time to port away from it
now.

Since qAsConst has exactly the same semantics as std::as_const (down
to rvalue treatment, constexpr'ness and noexcept'ness), there's really
nothing more to it than a global search-and-replace.

Task-number: QTBUG-99313
Change-Id: I1b3c7c4058726c55199fd8ba74b6d6890ad8dd93
Reviewed-by: Mike Krus <mike.krus@kdab.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-10-20 12:49:19 +02:00
Lucie Gérard 2f1bc82b35 Use SPDX license identifiers
Replace the current license disclaimer in files by
a SPDX-License-Identifier.
License files are organized under LICENSES directory.

Pick-to: 6.4
Task-number: QTBUG-67283
Change-Id: I8105424281eed871037fa6c463871ca8829876b5
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
2022-06-22 10:47:10 +02:00
Marc Mutz 0570d73b61 Eradicate Q_FOREACH loops and mark the module clean
The only noteworth change is where a loop around spy.events modified
the container using takeFirst(). There was no reason to do so, so it
was changed to use the loop variable instead of the result of taking.

Change-Id: I02c62a7c2efc5d042c6e669fe5daddd7da7e85d2
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
2019-05-22 16:13:12 +02:00
Paul Lemire d220a4cfe5 deferred-renderer-cpp: properly handle window size changes
Change-Id: I8e89a6c0adc2b99e5fe2af61629df2f2a6ae3ccd
Task-number: QTBUG-55163
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
2016-08-10 19:45:06 +00:00
Paul Lemire 14f1221587 Fix deferred-renderer-cpp
The window size needs to be set as a QSizeF and not a QSize as the shader
expects a vec2. int to float conversion was failing and giving unexpected
values to the shader.

Change-Id: Ide4b4a884011e320bc909da27633e6adee1956c1
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
2016-08-10 19:45:04 +00:00
Paul Lemire 96a11061fb Fix deferred-renderer.cpp
Change-Id: I0b571ff00965305f0f1d1cfcf895260ed48ee53a
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
2016-07-01 07:23:42 +00:00
Robert Brock c5cb6a4783 Moved deferred-renderer-cpp example to manual test
Part of an examples cleanup

Change-Id: I3b95590bef2261b1a4701b9b3fc35e9e909a0283
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
2016-05-15 13:44:29 +00:00