D14000: qqc2-desktop-style: basic support for QGuiApplication-based apps (WIP/PoC)
David Edmundson
noreply at phabricator.kde.org
Mon Jul 16 16:35:44 BST 2018
davidedmundson added a comment.
Please swap qApp->style for QApplication::style as it's static.
Solution is quite clever.
It's risky as any qstyle will always be written assuming it's a QApplication; but by definition the QQC2 code shields from a lot of the QWidget casting that would cause an issue.
Worst case we crash, which is the current state.
I don't think we should remove the plasma-integration guard, but this is surprisingly un-invasive. Meh, +1
REPOSITORY
R858 Qt Quick Controls 2: Desktop Style
REVISION DETAIL
https://phabricator.kde.org/D14000
To: rjvbb, #frameworks
Cc: davidedmundson, mart, broulik, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180716/fe3bcba8/attachment.html>
More information about the Kde-frameworks-devel
mailing list