53 else if (
const mitk::ColorProperty *prop = dynamic_cast<const mitk::ColorProperty *>(property))
58 else if (
const mitk::BoolProperty *prop = dynamic_cast<const mitk::BoolProperty *>(property))
63 widget->SetProperty(const_cast<mitk::BoolProperty *>(prop));
66 else if (
const mitk::IntProperty *prop = dynamic_cast<const mitk::IntProperty *>(property))
71 else if (
const mitk::FloatProperty *prop = dynamic_cast<const mitk::FloatProperty *>(property))
76 else if (
const mitk::DoubleProperty *prop = dynamic_cast<const mitk::DoubleProperty *>(property))
81 else if (property !=
nullptr)
117 widget->SetProperty(prop);
129 pe->setDecimalPlaces(2);
136 pe->setDecimalPlaces(2);
143 pe->SetProperty(prop);
QWidget * CreateEditor(mitk::BaseProperty *property, unsigned int type=0, QWidget *parent=nullptr)
static QmitkPropertyViewFactory * GetInstance()
QmitkPropertyViewFactory()
The ColorProperty class RGB color property.
Abstract base class for properties.
QWidget * CreateView(const mitk::BaseProperty *property, unsigned int type=0, QWidget *parent=nullptr)
~QmitkPropertyViewFactory()