]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt/CategorizedCombo.h
Fix readability
[lyx.git] / src / frontends / qt / CategorizedCombo.h
index 3ce7da78830d3f49d0dcdd6573dc43da6d59b100..51bdb4ff0789aab6a555aef47198fb4b89064212 100644 (file)
@@ -38,7 +38,7 @@ public:
        ~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.
@@ -49,7 +49,7 @@ public:
        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;
        ///
@@ -57,10 +57,10 @@ public:
                                                    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;
 
@@ -74,6 +74,8 @@ private:
        struct Private;
        ///
        Private * const d;
+       ///
+       int lastCurrentIndex_;
 };