1#ifndef SRC_COMMON_CONFIGHELPERS_H_
2#define SRC_COMMON_CONFIGHELPERS_H_
18 std::shared_ptr<QWidget> q = std::make_shared<QWidget>();
25 props.push_back(propName);
26 q->setProperty(propName.toStdString().c_str(), properties.at(propName));
37 w->setParent(q.get());
38 w->setObjectName(propName +
"Widget");
42 q->setProperty(
"exposedProperties", props);
48 std::map<QString, QVariant>& properties)
52 QVariant v = qobject.property(propName.toStdString().c_str());
54 properties[propName] = v;
Definition confighelpers.h:12
static void setQConfig(const QWidget &qobject, const ComponentInterface::ComponentProperties &sp, std::map< QString, QVariant > &properties)
Definition confighelpers.h:47
static std::shared_ptr< QWidget > getQConfig(const ComponentInterface::ComponentProperties &sp, const std::map< QString, QVariant > &properties)
Definition confighelpers.h:15
static constexpr const CustomEditFieldCbk & propertyField(const ComponentProperty &p)
Definition componentinterface.h:84
static constexpr const QVariant::Type & propertyType(const ComponentProperty &p)
Definition componentinterface.h:74
std::vector< ComponentProperty > ComponentProperties
Definition componentinterface.h:66
static constexpr const PropertyEditable & propertyEditability(const ComponentProperty &p)
Definition componentinterface.h:79
static constexpr const QString & propertyName(const ComponentProperty &p)
Definition componentinterface.h:69
Definition propertyfields.h:17