kdeclarative: fix crash in IconDialog when no QApplication is available.
Review Request #128730 - Created Aug. 21, 2016 and submitted
This happens when QtCreator launches qmlplugindump. Testcase: qmlplugindump -nonrelocatable org.kde.plasma.calendar 2.0 /usr/lib64/qml There are more similar issues, e.g. in plasma-framework/src/declarativeimports/plasmacomponents/qmenu.cpp
as mentionned above
Is there a way to say that the qml import may only be used if it's a QApplication? I'm not sure whether it makes sense to patch out all places where a QWidget dependency is used. In the end it will be broken in the runtime anyway.