feat(parameter): populate parameterPanel

This commit is contained in:
parker
2025-07-23 19:54:40 +01:00
parent c3fabfa47b
commit ae78e15931
15 changed files with 79 additions and 22 deletions

View File

@@ -4,9 +4,19 @@
#include <QLabel>
enzo::ui::AbstractFormParm::AbstractFormParm()
enzo::ui::AbstractFormParm::AbstractFormParm(std::weak_ptr<prm::Parameter> parameter)
{
auto label = new QLabel("Parm name:");
std::string name;
if(auto sharedParameter=parameter.lock())
{
name = sharedParameter->getName();
}
else
{
return;
}
auto label = new QLabel(QString::fromStdString(name+":"));
label->setStyleSheet("QLabel{background: none}");
label->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);