From 80d0915cf8e91c4f436a11ebe70ff6742eeffcab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Fl=C3=B6ser?= Date: Thu, 8 Nov 2018 09:24:43 +0100 Subject: [PATCH] [aurorae] Print qml errors during instantiation of qml based deco Summary: So far we didn't know why plastik wasn't loaded. Now we get the error messages. Test Plan: Saw error messages while investigating failing KWin test Reviewers: #kwin Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D16753 --- plugins/kdecorations/aurorae/src/aurorae.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/kdecorations/aurorae/src/aurorae.cpp b/plugins/kdecorations/aurorae/src/aurorae.cpp index 46e564b6ef..f5937d9bc5 100644 --- a/plugins/kdecorations/aurorae/src/aurorae.cpp +++ b/plugins/kdecorations/aurorae/src/aurorae.cpp @@ -315,6 +315,12 @@ void Decoration::init() } m_item = qobject_cast< QQuickItem* >(component->create(context)); if (!m_item) { + if (component->isError()) { + const auto errors = component->errors(); + for (const auto &error: errors) { + qCWarning(AURORAE) << error; + } + } return; } m_item->setParent(this);