39 m_list =
new QListWidget(
this);
41 m_list->setSortingEnabled(
false);
42 m_list->setSelectionMode(QAbstractItemView::ExtendedSelection);
46 for (
auto &item : items) {
47 m_list->addItem(QString::fromStdString(item));
62 auto selectedItems =
m_list->selectedItems();
64 for (
int i = 0; i < selectedItems.size(); ++i) {
68 ss << selectedItems[i]->text().toStdString();
70 return QString::fromStdString(ss.str());
80 auto items =
m_list->findItems(temp, Qt::MatchWildcard);
81 for (
auto item : items) {
82 item->setSelected(
true);
83 m_list->setCurrentItem(item);
84 m_list->scrollToItem(item);
double value
The value of the point.
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.
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.