11#include <QAbstractItemModel>
39 void SetModel (QAbstractItemModel& model);
void selectionEdited(const QStringList &selected)
Emitted after the user has changed the selection, with GetSelections().
QStringList GetSelections() const
Returns the selected names present in the model.
void SetModel(QAbstractItemModel &model)
Lists the names of model, which is not owned.
CategorySelector(QWidget *parent=nullptr)
void SelectNone()
Clears the selection.
void SetCaption(const QString &caption)
Sets the header above the list; there is none by default.
void SetSelections(const QStringList &names)
Replaces the selection.
void SelectAll()
Selects exactly the names in the model.
QModelIndexList GetSelectedIndexes() const
Returns the model's indexes of the selected names.