D24379: [energy kcm] Fix Technology values

Méven Car noreply at phabricator.kde.org
Fri Oct 4 11:27:25 BST 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20191004/05cb68ac/attachment.html>


More information about the Plasma-devel mailing list