21 const variant<QString, Unit>& unit)
23 label, item->toolTip(), item->limits(), [=](int d) { item->
setValue(d); },
24 [=]() {
return item->value().toInt(); }, unit)
34 function<
void(uint)> setter,
function<uint()> getter,
35 const variant<QString, Unit>& unit)
36 :
UIntDescriptor(label, tooltip, RealLimits::nonnegative(), setter, getter, unit)
41 function<
void(uint)> setter,
function<uint()> getter,
42 const variant<QString, Unit>& unit)
43 : label(std::move(label))
44 , tooltip(std::move(tooltip))
46 , set(std::move(setter))
47 , get(std::move(getter))
53 const variant<QString, Unit>& unit)
55 label,
"", RealLimits::nonnegative(), [=](uint v) { *
const_cast<uint*
>(var) = v; },
56 [=] {
return *var; }, unit)
60 UIntDescriptor::operator uint()
const
Defines class SessionItem.
Defines class UIntDescriptor.
Base class for a GUI data item.
bool setValue(QVariant value)
Set value, ensure that variant types match.
Describes properties of a uint value which are necessary to allow GUI representation,...