]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiIdListModel.h
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiIdListModel.h
index 61f275c9ab4bbb6e9b2b3ce245613a4d736a04c6..1879968d2b14abf1c167e6468c50ea35fcf12740 100644 (file)
@@ -44,7 +44,7 @@ public:
        // Methods overridden from QAbstractListModel
        //////////////////////////////////////////////////////////////////////
        ///
-       int rowCount(QModelIndex const & parent = QModelIndex()) const
+       int rowCount(QModelIndex const & = QModelIndex()) const
                { return userData_.size(); }
 
        ///
@@ -85,8 +85,13 @@ public:
        ///
        void insertRow(int const i, QString const & uiString, 
                        std::string const & idString);
-       /* The following functions are currently unused but are retained here in
-          case they should at some point be useful.
+       /// \return the index of the (first) item with idString
+       /// \return -1 if not found
+       int findIDString(std::string const & idString);
+
+#if 0
+       //The following functions are currently unused but are retained here in
+       //case they should at some point be useful.
        ///
        void setUIString(int const i, std::string const & value)
                        { setUIString(index(i), value); }
@@ -101,12 +106,11 @@ public:
        ///
        void insertRow(int const i, std::string const & uiString, 
                        std::string const & idString);
-       /// Returns whether the model contains an item with the given ID
-       bool containsID(QVariant const &) const;
-       */
+#endif
 private:
        /// noncopyable
        GuiIdListModel(GuiIdListModel const &);
+       ///
        void operator=(GuiIdListModel const &);
        ///
        struct OurData {