]> 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 55915c4bdebde516464a5af9dfb3c0a17d4fa08c..1c56ed74af6ff0ca1094949d8445f5daaf64c2de 100644 (file)
@@ -23,7 +23,8 @@
 namespace lyx {
 namespace frontend {
 
-class TocModel: public QStandardItemModel {
+class TocModel : public QStandardItemModel
+{
        Q_OBJECT
 
 public:
@@ -44,12 +45,11 @@ public:
        ///
        QModelIndex const modelIndex(TocIterator const & it) const;
        ///
-       int modelDepth();
+       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;