Changeset View
Changeset View
Standalone View
Standalone View
plugins/problemreporter/problemtreeview.h
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 41 | public: | |||
---|---|---|---|---|---|
47 | 47 | | |||
48 | void contextMenuEvent(QContextMenuEvent*) override; | 48 | void contextMenuEvent(QContextMenuEvent*) override; | ||
49 | void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, | 49 | void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, | ||
50 | const QVector<int>& roles = QVector<int>()) override; | 50 | const QVector<int>& roles = QVector<int>()) override; | ||
51 | void reset() override; | 51 | void reset() override; | ||
52 | 52 | | |||
53 | int setFilter(const QString& filterText); | 53 | int setFilter(const QString& filterText); | ||
54 | 54 | | |||
55 | public slots: | 55 | public Q_SLOTS: | ||
56 | void openDocumentForCurrentProblem(); | 56 | void openDocumentForCurrentProblem(); | ||
57 | 57 | | |||
58 | signals: | 58 | Q_SIGNALS: | ||
59 | // Emitted when the model's rows change (added/removed/reset) | 59 | // Emitted when the model's rows change (added/removed/reset) | ||
60 | void changed(); | 60 | void changed(); | ||
61 | 61 | | |||
62 | protected: | 62 | protected: | ||
63 | void showEvent(QShowEvent* event) override; | 63 | void showEvent(QShowEvent* event) override; | ||
64 | 64 | | |||
65 | private slots: | 65 | private Q_SLOTS: | ||
66 | void itemActivated(const QModelIndex& index); | 66 | void itemActivated(const QModelIndex& index); | ||
67 | 67 | | |||
68 | private: | 68 | private: | ||
69 | void resizeColumns(); | 69 | void resizeColumns(); | ||
70 | ProblemReporterPlugin* m_plugin; | 70 | ProblemReporterPlugin* m_plugin; | ||
71 | QSortFilterProxyModel* m_proxy; | 71 | QSortFilterProxyModel* m_proxy; | ||
72 | }; | 72 | }; | ||
73 | 73 | | |||
74 | #endif | 74 | #endif | ||
75 | 75 | | |||
76 | // kate: space-indent on; indent-width 2; tab-width: 4; replace-tabs on; auto-insert-doxygen on | 76 | // kate: space-indent on; indent-width 2; tab-width: 4; replace-tabs on; auto-insert-doxygen on |