~CategorizedCombo();
/// select an item in the combobox. Returns false if item does not exist
- bool set(QString const & cc);
+ bool set(QString const & cc, bool const report_missing = true);
/// Reset the combobox.
void reset();
/// Reset the combobox filter.
void addItemSort(QString const & item, QString const & guiname,
QString const & category, QString const & tooltip,
bool sorted, bool sortedByCat, bool sortCats,
- bool available);
+ bool available, bool nocategories = false);
///
QString getData(int row) const;
///
QString const & unavail = QString());
///
- void showPopup();
+ void showPopup() override;
///
- bool eventFilter(QObject * o, QEvent * e);
+ bool eventFilter(QObject * o, QEvent * e) override;
///
QString const & filter() const;
struct Private;
///
Private * const d;
+ ///
+ int lastCurrentIndex_;
};