]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/TocModel.h
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / TocModel.h
index 175d40ab33aff8576ee9a92feda0dee158590ac4..1c56ed74af6ff0ca1094949d8445f5daaf64c2de 100644 (file)
@@ -23,7 +23,8 @@
 namespace lyx {
 namespace frontend {
 
-class TocModel: public QStandardItemModel {
+class TocModel : public QStandardItemModel
+{
        Q_OBJECT
 
 public:
@@ -43,11 +44,12 @@ public:
        TocIterator const tocIterator(QModelIndex const & index) const;
        ///
        QModelIndex const modelIndex(TocIterator const & it) const;
+       ///
+       int modelDepth() const;
 
 private:
        ///
-       void populate(TocIterator & it,
-               TocIterator const & end,
+       void populate(TocIterator & it, TocIterator const & end,
                QModelIndex const & parent);
        ///
        typedef std::map<QModelIndex, TocIterator> TocMap;
@@ -59,6 +61,9 @@ private:
        TocMap toc_map_;
        ///
        ModelMap model_map_;
+       ///
+       int maxdepth_;
+       int mindepth_;
 };
 
 } // namespace frontend