<table><tr><td style="">lnj added a comment.
</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/D25727">View Revision</a></tr></table><br /><div><div><p>The ActionsTypes are already registered using a wrapper class (this was required before Qt 5.8 / Q_NAMESPACE) in peopleqmlplugin.cpp. The Q_NAMESPACE solution would be better I think.</p>
<p>And yes, the namespace still needs to be registered using e.g. <tt style="background: #ebebeb; font-size: 13px;">qmlRegisterUncreatableMetaObject(KPeople::staticMetaObject, uri, 1, 0, "KPeople", QStringLiteral("Access to enums & flags only"));</tt> (see <a href="https://doc.qt.io/qt-5/qqmlengine.html#qmlRegisterUncreatableMetaObject" class="remarkup-link" target="_blank" rel="noreferrer">https://doc.qt.io/qt-5/qqmlengine.html#qmlRegisterUncreatableMetaObject</a>).</p>
<p>I tried to test this but it gave me a linker error about <tt style="background: #ebebeb; font-size: 13px;">KPeople::staticMetaObject</tt> although kpeopledeclarative is linking against kpeoplewidgets whichs adds the meta object. :/</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R307 KPeople</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25727">https://phabricator.kde.org/D25727</a></div></div><br /><div><strong>To: </strong>apol, jbbgameich<br /><strong>Cc: </strong>lnj, davidedmundson, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns<br /></div>