Changeset View
Changeset View
Standalone View
Standalone View
plugins/outlineview/outlinemodel.h
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 40 | public: | |||
---|---|---|---|---|---|
44 | QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; | 44 | QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; | ||
45 | QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const override; | 45 | QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const override; | ||
46 | int columnCount(const QModelIndex& parent = QModelIndex()) const override; | 46 | int columnCount(const QModelIndex& parent = QModelIndex()) const override; | ||
47 | int rowCount(const QModelIndex& parent = QModelIndex()) const override; | 47 | int rowCount(const QModelIndex& parent = QModelIndex()) const override; | ||
48 | QModelIndex parent(const QModelIndex& child) const override; | 48 | QModelIndex parent(const QModelIndex& child) const override; | ||
49 | bool hasChildren(const QModelIndex& parent = QModelIndex()) const override; | 49 | bool hasChildren(const QModelIndex& parent = QModelIndex()) const override; | ||
50 | Qt::ItemFlags flags(const QModelIndex& index) const override; | 50 | Qt::ItemFlags flags(const QModelIndex& index) const override; | ||
51 | 51 | | |||
52 | public slots: | 52 | public Q_SLOTS: | ||
53 | void activate(const QModelIndex& realIndex); | 53 | void activate(const QModelIndex& realIndex); | ||
54 | private slots: | 54 | private Q_SLOTS: | ||
55 | void rebuildOutline(KDevelop::IDocument* doc); | 55 | void rebuildOutline(KDevelop::IDocument* doc); | ||
56 | private: | 56 | private: | ||
57 | std::unique_ptr<OutlineNode> m_rootNode; | 57 | std::unique_ptr<OutlineNode> m_rootNode; | ||
58 | KDevelop::IDocument* m_lastDoc; | 58 | KDevelop::IDocument* m_lastDoc; | ||
59 | KDevelop::IndexedString m_lastUrl; | 59 | KDevelop::IndexedString m_lastUrl; | ||
60 | }; | 60 | }; |