https://bugs.kde.org/show_bug.cgi?id=513547
Bug ID: 513547
Summary: KConfigXT does not expose min/max
Classification: Frameworks and Libraries
Product: frameworks-kconfig
Version First unspecified
Reported In:
Platform: unspecified
OS: Unspecified
Status: REPORTED
Severity: wishlist
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
KConfigXT allows exposing property defaults via the DEFAULT_VALUE_GETTERS
option, and as I understand it, combined with GENERATE_PROPERTIES can expose
the default values of any config entry to QML. This is understandably useful
for resetting these entries.
Some config entries have a range of permissible values, and may be configured
with a slider. In this case, it is evident that it is better to have one source
of truth for the minimum and maximum values, rather than having to duplicate it
in QML — i.e. we have a defaultIconSizeValue property, we should have a
minIconSizeValue and maxIconSizeValue property.
Currently in code, the min/max are included:
- in the generated header to clamp incoming values in the property setter
- in the generated source for reasons unknown to me
(innerItemIconSize->setMinValue(i))
In summary, we should have some way to expose min/max config entry values and
also surface them in QML via Q_PROPERTY.
--
You are receiving this mail because:
You are watching all bug changes.