#include "DocIterator.h"
#include "FuncRequest.h"
#include "LyX.h"
+#include "qt_helpers.h"
#include "TocBackend.h"
#include "support/debug.h"
#include "support/lassert.h"
#include <QSortFilterProxyModel>
+#include <QStandardItemModel>
+
#include <climits>
///
void reset()
{
+#if (QT_VERSION < 0x050000)
QStandardItemModel::reset();
+#else
+ QStandardItemModel::endResetModel();
+#endif
}
///
void beginResetModel()
}
-void TocModels::updateBackend() const
-{
- bv_->buffer().masterBuffer()->tocBackend().update();
- bv_->buffer().structureChanged();
-}
-
-
void TocModels::updateItem(QString const & type, DocIterator const & dit)
{
models_[type]->updateItem(dit);