]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/TocModel.h
New class InsetCaptionable
[features.git] / src / frontends / qt4 / TocModel.h
index 83e957b4a9ddac6a4eae98670498f8797541d7a0..6b4315b36bdbb538a81bf0b1c2f9e75e9379d40d 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef TOCMODEL_H
 #define TOCMODEL_H
 
+#include "support/shared_ptr.h"
+
 #include <QHash>
 #include <QSortFilterProxyModel>
 
@@ -36,7 +38,7 @@ public:
        ///
        TocModel(QObject * parent);
        ///
-       void reset(Toc const & toc);
+       void reset(shared_ptr<Toc const>);
        ///
        void reset();
        ///
@@ -68,7 +70,7 @@ private:
        ///
        bool is_sorted_;
        ///
-       Toc const * toc_;
+       shared_ptr<Toc const> toc_;
        ///
        int maxdepth_;
        ///