40 m_list =
new QListWidget(
this);
42 m_list->setSortingEnabled(
false);
43 m_list->setSelectionMode(QAbstractItemView::ExtendedSelection);
47 for (
auto const &item : items) {
48 m_list->addItem(QString::fromStdString(item));
63 auto selectedItems =
m_list->selectedItems();
65 for (
int i = 0; i < selectedItems.size(); ++i) {
69 ss << selectedItems[i]->text().toStdString();
71 return QString::fromStdString(ss.str());
81 auto items =
m_list->findItems(temp, Qt::MatchWildcard);
82 for (
auto item : items) {
83 item->setSelected(
true);
84 m_list->setCurrentItem(item);
85 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.