#ifndef TOCMODEL_H
#define TOCMODEL_H
-#include "qt_helpers.h"
+#include "support/shared_ptr.h"
#include <QHash>
#include <QSortFilterProxyModel>
-#include <QStandardItemModel>
namespace lyx {
/// There is one TocModel per list in the TocBackend.
class TocModel
{
+ /// noncopyable
+ TocModel(TocModel const &);
+ void operator=(TocModel const &);
public:
///
TocModel(QObject * parent);
///
- void reset(Toc const & toc);
+ void reset(shared_ptr<Toc const>);
///
void reset();
///
///
bool is_sorted_;
///
- Toc const * toc_;
+ shared_ptr<Toc const> toc_;
///
int maxdepth_;
///