broulik created this revision.
broulik added a reviewer: Plasma.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
broulik requested review of this revision.
REVISION SUMMARY
KWindowSystem plug-in loading (and everything regarding a window system, like
X or Wayland connection anyway) depends on `QGuiApplication::platformName()`
which will be empty when there is none, such as in a `QCoreApplication`.
This would then just print a meaningless error on how now platform plug-in
was found.
TEST PLAN
- Created a `QCoreApplication`, called `KWindowSystem::windows()`, got a
warning that I need a `QGuiApplication` and an empty window list
- Created a `QGuiApplication`, called `KWindowSystem::windows()`, got no
warning and a lost of X window ids
- Created a `QApplication`, called `KWindowSystem::windows()`, got no warning
and a lost of X window ids
REPOSITORY
R278 KWindowSystem
REVISION DETAIL
https://phabricator.kde.org/D29036
AFFECTED FILES
src/pluginwrapper.cpp
To: broulik, #plasma
Cc: kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns