<table><tr><td style="">plevine created this revision.<br />plevine added a reviewer: jriddell.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />plevine requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D25624">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Building Plymouth-kcm-5.17.3 against Qt 5.14.0_beta3 fails with:</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">../plymouth-kcm-5.17.3/src/kcm.cpp: In constructor 'KCMPlymouth::KCMPlymouth(QObject*, const QVariantList&)':
../plymouth-kcm-5.17.3/src/kcm.cpp:54:41: error: no matching function for call to 'qmlRegisterType<QStandardItemModel>()'
54 | qmlRegisterType<QStandardItemModel>();
| ^
In file included from /usr/include/qt5/QtQml/QtQml:9,
from /usr/include/KF5/KDeclarative/kquickaddons/configmodule.h:34,
from /usr/include/KF5/KDeclarative/KQuickAddons/ConfigModule:1,
from ../plymouth-kcm-5.17.3/src/kcm.h:28,
from ../plymouth-kcm-5.17.3/src/kcm.cpp:21:
/usr/include/qt5/QtQml/qqml.h:291:5: note: candidate: 'int qmlRegisterType(const char*, int, int, const char*) [with T = QStandardItemModel]'
291 | int qmlRegisterType(const char *uri, int versionMajor, int versionMinor, const char *qmlName)
| ^~~~~~~~~~~~~~~
/usr/include/qt5/QtQml/qqml.h:291:5: note: candidate expects 4 arguments, 0 provided
/usr/include/qt5/QtQml/qqml.h:322:5: note: candidate: 'template<class T, int metaObjectRevision> int qmlRegisterType(const char*, int, int, const char*)'
322 | int qmlRegisterType(const char *uri, int versionMajor, int versionMinor, const char *qmlName)
| ^~~~~~~~~~~~~~~
/usr/include/qt5/QtQml/qqml.h:322:5: note: template argument deduction/substitution failed:
../plymouth-kcm-5.17.3/src/kcm.cpp:54:41: note: candidate expects 4 arguments, 0 provided
54 | qmlRegisterType<QStandardItemModel>();
| ^
../plymouth-kcm-5.17.3/src/kcm.cpp:55:34: error: no matching function for call to 'qmlRegisterType<KCMPlymouth>()'
55 | qmlRegisterType<KCMPlymouth>();
| ^
In file included from /usr/include/qt5/QtQml/QtQml:9,
from /usr/include/KF5/KDeclarative/kquickaddons/configmodule.h:34,
from /usr/include/KF5/KDeclarative/KQuickAddons/ConfigModule:1,
from ../plymouth-kcm-5.17.3/src/kcm.h:28,
from ../plymouth-kcm-5.17.3/src/kcm.cpp:21:
/usr/include/qt5/QtQml/qqml.h:291:5: note: candidate: 'int qmlRegisterType(const char*, int, int, const char*) [with T = KCMPlymouth]'
291 | int qmlRegisterType(const char *uri, int versionMajor, int versionMinor, const char *qmlName)
| ^~~~~~~~~~~~~~~
/usr/include/qt5/QtQml/qqml.h:291:5: note: candidate expects 4 arguments, 0 provided
/usr/include/qt5/QtQml/qqml.h:322:5: note: candidate: 'template<class T, int metaObjectRevision> int qmlRegisterType(const char*, int, int, const char*)'
322 | int qmlRegisterType(const char *uri, int versionMajor, int versionMinor, const char *qmlName)
| ^~~~~~~~~~~~~~~
/usr/include/qt5/QtQml/qqml.h:322:5: note: template argument deduction/substitution failed:
../plymouth-kcm-5.17.3/src/kcm.cpp:55:34: note: candidate expects 4 arguments, 0 provided
55 | qmlRegisterType<KCMPlymouth>();
| ^
ninja: build stopped: subcommand failed.</pre></div>
<p>From <a href="https://doc-snapshots.qt.io/qt5-5.14/qqmlengine-obsolete.html" class="remarkup-link" target="_blank" rel="noreferrer">https://doc-snapshots.qt.io/qt5-5.14/qqmlengine-obsolete.html</a>:</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">int qmlRegisterType()
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This is an overloaded function.
Do not use this function. For anonymous type registrations, use qmlRegisterAnonymousType(), and make sure to provide a URI and a major version.</pre></div>
<p>I don't have much experience with QT/KDE programming but these changes are sufficient to fix the build error on my end.</p>
<p>BUG: 414679</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R124 System Settings</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25624">https://phabricator.kde.org/D25624</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kcm.cpp</div></div></div><br /><div><strong>To: </strong>plevine, jriddell<br /><strong>Cc: </strong>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<br /></div>