]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt/TocModel.h
Hack to display section symbol
[lyx.git] / src / frontends / qt / TocModel.h
index b2d74a2b510347630961882336b95fb70c6ab871..ee447616d0d448ca1e6a0067b3c7846f71e1e8c0 100644 (file)
@@ -47,6 +47,8 @@ public:
        ///
        void clear();
        ///
+       bool empty() { return toc_->empty(); }
+       ///
        QAbstractItemModel * model();
        ///
        QAbstractItemModel const * model() const;
@@ -90,7 +92,7 @@ public:
                : QSortFilterProxyModel(w)
        {}
 
-       bool lessThan (const QModelIndex & left, const QModelIndex & right) const
+       bool lessThan(const QModelIndex & left, const QModelIndex & right) const override
        {
                if (left.model()->data(left, Qt::UserRole).toString()
                          == QString("tableofcontents"))