diff options
| author | Shawn Rutledge <shawn.rutledge@qt.io> | 2023-08-18 20:11:59 +0200 |
|---|---|---|
| committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2023-08-21 23:14:01 +0200 |
| commit | 71e6a60a3d9c33b821de09ab4e7eed9eefbf38c6 (patch) | |
| tree | b8cd97e5db5d66d4a6050360765691a38da12cf4 /src/quick/util/qquickpixmapcache.cpp | |
| parent | 223f46f310d5f98be31a70f8155109fae74d8783 (diff) | |
Remove QML_LEAK_CHECK
Using an env var to enable specific debug output has been obsolete
ever since we added categorized logging.
[ChangeLog][QtQuick][SceneGraph] The environment variable QML_LEAK_CHECK
is replaced by the logging category qt.scenegraph.leaks.
Change-Id: I33b6f100df99eb558e2715d39d833e813ecde20d
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'src/quick/util/qquickpixmapcache.cpp')
| -rw-r--r-- | src/quick/util/qquickpixmapcache.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/quick/util/qquickpixmapcache.cpp b/src/quick/util/qquickpixmapcache.cpp index 3cf7fa879b..a38e327261 100644 --- a/src/quick/util/qquickpixmapcache.cpp +++ b/src/quick/util/qquickpixmapcache.cpp @@ -56,6 +56,8 @@ QT_BEGIN_NAMESPACE +Q_DECLARE_LOGGING_CATEGORY(lcQsgLeak) + #if defined(QT_DEBUG) && QT_CONFIG(thread) class ThreadAffinityMarker { @@ -1281,8 +1283,8 @@ QQuickPixmapStore::~QQuickPixmapStore() } #ifndef QT_NO_DEBUG - if (leakedPixmaps && _q_sg_leak_check) - qDebug("Number of leaked pixmaps: %i", leakedPixmaps); + if (leakedPixmaps) + qCDebug(lcQsgLeak, "Number of leaked pixmaps: %i", leakedPixmaps); #endif } |
