]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/TocModel.h
Add missing initialization
[lyx.git] / src / frontends / qt4 / TocModel.h
index f0f9efa3196fda249010177afe62c320529d0d70..0c3c6b09dde61d52851f15e99c9a4319b892a575 100644 (file)
@@ -14,8 +14,6 @@
 
 #include "Toc.h"
 
-#include "support/shared_ptr.h"
-
 #include <QHash>
 #include <QSortFilterProxyModel>
 
@@ -41,7 +39,7 @@ public:
        ///
        TocModel(QObject * parent);
        ///
-       void reset(shared_ptr<Toc const>);
+       void reset(std::shared_ptr<Toc const>);
        ///
        void reset();
        ///
@@ -67,13 +65,15 @@ private:
        ///
        void populate(unsigned int & index, QModelIndex const & parent);
        ///
+       void setString(TocItem const & item, QModelIndex index);
+       ///
        TocTypeModel * model_;
        ///
        QSortFilterProxyModel * sorted_model_;
        ///
        bool is_sorted_;
        ///
-       shared_ptr<Toc const> toc_;
+       std::shared_ptr<Toc const> toc_;
        ///
        int maxdepth_;
        ///
@@ -121,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;
        ///
@@ -142,8 +143,6 @@ private:
        ///
        void clear();
        ///
-       BufferView const * bv_;
-       ///
        QHash<QString, TocModel *> models_;
        ///
        TocTypeModel * names_;