X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FTocModel.h;h=0c3c6b09dde61d52851f15e99c9a4319b892a575;hb=1f10969bb5c5f36017bf5ba8671381b09945cf57;hp=c959aba5567e04b384f3d403d46e7e0abaaa0c9d;hpb=e3540f33e17ca45ffa5ec532ee7f1113638cc366;p=lyx.git diff --git a/src/frontends/qt4/TocModel.h b/src/frontends/qt4/TocModel.h index c959aba556..0c3c6b09dd 100644 --- a/src/frontends/qt4/TocModel.h +++ b/src/frontends/qt4/TocModel.h @@ -14,8 +14,6 @@ #include "Toc.h" -#include "support/shared_ptr.h" - #include #include @@ -41,7 +39,7 @@ public: /// TocModel(QObject * parent); /// - void reset(shared_ptr); + void reset(std::shared_ptr); /// 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_; + std::shared_ptr 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; /// @@ -136,18 +137,12 @@ public: TocItem const currentItem(QString const & type, QModelIndex const & index) const; -Q_SIGNALS: - /// Signal that the internal toc_models_ has been reset. - void modelReset(); - private: typedef QHash::const_iterator const_iterator; typedef QHash::iterator iterator; /// void clear(); /// - BufferView const * bv_; - /// QHash models_; /// TocTypeModel * names_;