MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / bind_bool

Method bind_bool

DSView/pv/prop/binding/deviceoptions.cpp:158–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void DeviceOptions::bind_bool(const QString &name, const QString label, int key)
159{
160 QString text = LangResource::Instance()->get_lang_text(STR_PAGE_DSL, label.toLocal8Bit().data(), label.toLocal8Bit().data());
161 _properties.push_back(
162 new Bool(name, text, bind(config_getter, key),
163 bind(config_setter, key, _1)));
164}
165
166void DeviceOptions::bind_enum(const QString &name, const QString label, int key,
167 GVariant *const gvar_list, boost::function<QString (GVariant*)> printer)

Callers

nothing calls this directly

Calls 2

get_lang_textMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected