D25624: Don't use qmlRegisterType with QT-5.14
Vlad Zahorodnii
noreply at phabricator.kde.org
Sat Nov 30 12:31:23 GMT 2019
zzag added inline comments.
INLINE COMMENTS
> kcm.cpp:55
> {
> +#if QT_VERSION < 0x050140
> qmlRegisterType<QStandardItemModel>();
You could use `QT_VERSION_CHECK` to make the code more readable, e.g.
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
qmlRegisterType<QStandardItemModel>();
qmlRegisterType<KCMPlymouth>();
#else
qmlRegisterAnonymousType<QStandardItemModel>("KCMPlymouth", 1);
qmlRegisterAnonymousType<KCMPlymouth>("KCMPlymouth", 1);
#endif
REPOSITORY
R124 System Settings
REVISION DETAIL
https://phabricator.kde.org/D25624
To: plevine, jriddell, #plasma, davidedmundson
Cc: zzag, davidedmundson, asturmlechner, plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20191130/20a4312a/attachment.html>
More information about the Plasma-devel
mailing list