X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FTocModel.h;h=7475416160198a57ac531b2341acaeee25b3f959;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=6385a586b5c61ea170bad2ead3d25394d71d1d3e;hpb=6bd9b43ce55c81c71c605c9461f19e2ffbb4cf32;p=lyx.git diff --git a/src/frontends/qt4/TocModel.h b/src/frontends/qt4/TocModel.h index 6385a586b5..7475416160 100644 --- a/src/frontends/qt4/TocModel.h +++ b/src/frontends/qt4/TocModel.h @@ -30,7 +30,7 @@ class TocItem; namespace frontend { /// A QStandardItemModel that gives access to the reset method. -/// This is needed in order to fix http://bugzilla.lyx.org/show_bug.cgi?id=3740 +/// This is needed in order to fix http://www.lyx.org/trac/ticket/3740 class TocTypeModel : public QStandardItemModel { public: @@ -53,6 +53,8 @@ public: /// void reset(); /// + void updateItem(DocIterator const & dit); + /// void clear(); /// QAbstractItemModel * model(); @@ -111,9 +113,14 @@ public: /// void updateBackend() const; /// + void updateItem(QString const & type, DocIterator const & dit); + /// void sort(QString const & type, bool sort_it); /// bool isSorted(QString const & type) const; + /// the item that is currently selected + TocItem const currentItem(QString const & type, + QModelIndex const & index) const; Q_SIGNALS: /// Signal that the internal toc_models_ has been reset.