42 if (std::string(prop->
type()).find(
"Workspace") != std::string::npos) {
44 m_combo->setInsertPolicy(QComboBox::NoInsert);
45 m_combo->completer()->setCompletionMode(QCompleter::PopupCompletion);
48 m_combo->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLengthWithIcon);
49 m_combo->setMinimumContentsLength(20);
53 for (
auto &item : items) {
54 m_combo->addItem(QString::fromStdString(item));
double value
The value of the point.
std::map< DeltaEMode::Type, std::string > index
Base class for properties.
const std::string & name() const
Get the property's name.
virtual std::vector< std::string > allowedValues() const
Returns the set of valid values for this property, if such a set exists.
const std::string type() const
Returns the type of the property as a string.
virtual std::string getDefault() const =0
Get the default value for the property which is the value the property was initialised with.
virtual std::string value() const =0
Returns the value of the property as a string.