]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/TocModel.h
Some improvements to the graphics dialog
[lyx.git] / src / frontends / qt4 / TocModel.h
index 7b22ce6230f007f5ed5dfd61708dbc435354d314..ed94218ad6529786d0b1b154573beaa52407d098 100644 (file)
@@ -65,6 +65,8 @@ private:
        ///
        void populate(unsigned int & index, QModelIndex const & parent);
        ///
+       void setString(TocItem const & item, QModelIndex index);
+       ///
        TocTypeModel * model_;
        ///
        QSortFilterProxyModel * sorted_model_;
@@ -84,7 +86,7 @@ private:
 class TocModelSortProxyModel : public QSortFilterProxyModel
 {
 public:
-       TocModelSortProxyModel(QObject * w) 
+       TocModelSortProxyModel(QObject * w)
                : QSortFilterProxyModel(w)
        {}
 
@@ -119,7 +121,8 @@ public:
        ///
        QAbstractItemModel * nameModel();
        ///
-       QModelIndex currentIndex(QString const & type) const;
+       QModelIndex currentIndex(QString const & type,
+                                DocIterator const & dit) const;
        ///
        void goTo(QString const & type, QModelIndex const & index) const;
        ///
@@ -140,8 +143,6 @@ private:
        ///
        void clear();
        ///
-       BufferView const * bv_;
-       ///
        QHash<QString, TocModel *> models_;
        ///
        TocTypeModel * names_;