debug/linter: remove log messages

Printing qml items here breaks the qml engine in a way that made
transparent rectangles in the scene graph opaque.
This commit is contained in:
outfoxxed 2024-11-22 16:15:03 -08:00
parent f0aca2030e
commit 5b01ec032e
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -21,8 +21,6 @@ bool isRenderable(QQuickItem* item);
void lintObjectTree(QObject* object) {
if (!logLint().isWarningEnabled()) return;
qCDebug(logLint) << "Walking children of object" << object;
for (auto* child: object->children()) {
if (child->isQuickItemType()) {
auto* item = static_cast<QQuickItem*>(child); // NOLINT;
@ -36,10 +34,8 @@ void lintObjectTree(QObject* object) {
void lintItemTree(QQuickItem* item) {
if (!logLint().isWarningEnabled()) return;
qCDebug(logLint) << "Running lints for item" << item;
lintZeroSized(item);
qCDebug(logLint) << "Walking visual children of item" << item;
for (auto* child: item->childItems()) {
lintItemTree(child);
}