forked from quickshell/quickshell
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:
parent
f0aca2030e
commit
5b01ec032e
1 changed files with 0 additions and 4 deletions
|
@ -21,8 +21,6 @@ bool isRenderable(QQuickItem* item);
|
||||||
void lintObjectTree(QObject* object) {
|
void lintObjectTree(QObject* object) {
|
||||||
if (!logLint().isWarningEnabled()) return;
|
if (!logLint().isWarningEnabled()) return;
|
||||||
|
|
||||||
qCDebug(logLint) << "Walking children of object" << object;
|
|
||||||
|
|
||||||
for (auto* child: object->children()) {
|
for (auto* child: object->children()) {
|
||||||
if (child->isQuickItemType()) {
|
if (child->isQuickItemType()) {
|
||||||
auto* item = static_cast<QQuickItem*>(child); // NOLINT;
|
auto* item = static_cast<QQuickItem*>(child); // NOLINT;
|
||||||
|
@ -36,10 +34,8 @@ void lintObjectTree(QObject* object) {
|
||||||
void lintItemTree(QQuickItem* item) {
|
void lintItemTree(QQuickItem* item) {
|
||||||
if (!logLint().isWarningEnabled()) return;
|
if (!logLint().isWarningEnabled()) return;
|
||||||
|
|
||||||
qCDebug(logLint) << "Running lints for item" << item;
|
|
||||||
lintZeroSized(item);
|
lintZeroSized(item);
|
||||||
|
|
||||||
qCDebug(logLint) << "Walking visual children of item" << item;
|
|
||||||
for (auto* child: item->childItems()) {
|
for (auto* child: item->childItems()) {
|
||||||
lintItemTree(child);
|
lintItemTree(child);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue