Diffusion Solid 76710483c865

Make battery serial property constant

Authored by meven on Aug 31 2019, 7:38 AM.

Description

Make battery serial property constant

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

Reviewers: Frameworks, davidedmundson

Reviewed By: davidedmundson

Subscribers: kde-frameworks-devel

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D23598

Details

Committed
mevenAug 31 2019, 7:39 AM
Reviewer
davidedmundson
Differential Revision
D23598: Make battery serial property constant
Parents
R245:f7149af10e4b: Only build tests when DBus is available
Branches
Unknown
Tags
Unknown