D23598: Make battery serial property constant

Méven Car noreply at phabricator.kde.org
Sat Aug 31 08:01:55 BST 2019


meven created this revision.
meven added a reviewer: Frameworks.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
meven requested review of this revision.

REVISION SUMMARY
  Since serial property cannot change and has no NOTIFY function, mark it as constant, to avoid warnings when the property is used in qml expression.
  For instance in kinfocenter energy_info kcm :
  QQmlExpression: Expression file:///home/meven/kde/usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:452:29 depends on non-NOTIFYable properties:
  
    Solid::Battery::serial

REPOSITORY
  R245 Solid

BRANCH
  master

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

AFFECTED FILES
  src/solid/devices/frontend/battery.h

To: meven, #frameworks
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190831/3e8fc0de/attachment.html>


More information about the Kde-frameworks-devel mailing list