meven added inline comments.

INLINE COMMENTS

> batterymodel.cpp:31
>  {
> -    qmlRegisterType<Solid::Battery>();
> +    
> qmlRegisterUncreatableType<Solid::Battery>("org.kde.kinfocenter.energy.private",
>  1, 0, "Battery",
> +            QStringLiteral("Use Solid::Battery"));

Used this nice documentation to choose the right method : 
https://doc.qt.io/qt-5/qtqml-cppintegration-overview.html#choosing-the-correct-integration-method-between-c-and-qml

REPOSITORY
  R102 KInfoCenter

REVISION DETAIL
  https://phabricator.kde.org/D24379

To: meven, ngraham, ltoscano
Cc: davidedmundson, alexde, plasma-devel, ltoscano, LeGast00n, 
The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, 
alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, 
apol, mart

Reply via email to