From e6f2753f4370cc46626fc68efb88705b23ef53e3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 3 Jan 2026 00:54:07 +0100 Subject: Add sub_heading to UserProperty. --- src/lib/user_property.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/user_property.h b/src/lib/user_property.h index 14b30c2ff..3ec2f355f 100644 --- a/src/lib/user_property.h +++ b/src/lib/user_property.h @@ -37,14 +37,16 @@ public: }; template - UserProperty(Category category_, std::string key_, T value_, std::string unit_ = "") + UserProperty(Category category_, std::string key_, T value_, std::string unit_ = "", boost::optional sub_heading_ = boost::none) : category(category_) + , sub_heading(sub_heading_) , key(key_) , value(dcp::locale_convert(value_)) , unit(unit_) {} Category category; + boost::optional sub_heading; std::string key; std::string value; std::string unit; -- cgit v1.2.3