diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-09-26 09:47:54 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-09-29 00:12:53 +0200 |
commit | cd5a0bc7352ea57ea01c3edbf54321b7fed7c113 (patch) | |
tree | 98295cd82533e2c78af3c0e7efc5577a1baf3c0f /tests/manual | |
parent | 72dd9de283aded3097f5e97fa56dfc048a999c5e (diff) | |
download | qtbase-cd5a0bc7352ea57ea01c3edbf54321b7fed7c113.tar.gz |
rhi: Always enable debug info printing from manual tests
It can be important to see for example the adapter enumeration that is
printed when qt.rhi.general is enabled. Make it enabled by default in
the tests.
Change-Id: I7bd073781e176d9b17b5386c548e9f8a2e16c10f
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r-- | tests/manual/rhi/shared/examplefw.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/manual/rhi/shared/examplefw.h b/tests/manual/rhi/shared/examplefw.h index 220c3d0ff2..cd62530c82 100644 --- a/tests/manual/rhi/shared/examplefw.h +++ b/tests/manual/rhi/shared/examplefw.h @@ -58,6 +58,7 @@ #include <QPlatformSurfaceEvent> #include <QElapsedTimer> #include <QTimer> +#include <QLoggingCategory> #include <QtGui/private/qshader_p.h> #include <QFile> @@ -70,7 +71,6 @@ #endif #if QT_CONFIG(vulkan) -#include <QLoggingCategory> #include <QtGui/private/qrhivulkan_p.h> #endif @@ -444,6 +444,8 @@ int main(int argc, char **argv) QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QGuiApplication app(argc, argv); + QLoggingCategory::setFilterRules(QLatin1String("qt.rhi.*=true")); + // Defaults. #if defined(Q_OS_WIN) graphicsApi = D3D11; |