Changeset View
Changeset View
Standalone View
Standalone View
plugins/problemreporter/problemhighlighter.h
Show All 31 Lines | |||||
32 | { | 32 | { | ||
33 | Q_OBJECT | 33 | Q_OBJECT | ||
34 | public: | 34 | public: | ||
35 | explicit ProblemHighlighter(KTextEditor::Document* document); | 35 | explicit ProblemHighlighter(KTextEditor::Document* document); | ||
36 | ~ProblemHighlighter() override; | 36 | ~ProblemHighlighter() override; | ||
37 | 37 | | |||
38 | void setProblems(const QVector<KDevelop::IProblem::Ptr>& problems); | 38 | void setProblems(const QVector<KDevelop::IProblem::Ptr>& problems); | ||
39 | 39 | | |||
40 | private slots: | 40 | private Q_SLOTS: | ||
41 | void aboutToRemoveText(const KTextEditor::Range& range); | 41 | void aboutToRemoveText(const KTextEditor::Range& range); | ||
42 | void clearProblems(); | 42 | void clearProblems(); | ||
43 | 43 | | |||
44 | private: | 44 | private: | ||
45 | QPointer<KTextEditor::Document> m_document; | 45 | QPointer<KTextEditor::Document> m_document; | ||
46 | QList<KTextEditor::MovingRange*> m_topHLRanges; | 46 | QList<KTextEditor::MovingRange*> m_topHLRanges; | ||
47 | QVector<KDevelop::IProblem::Ptr> m_problems; | 47 | QVector<KDevelop::IProblem::Ptr> m_problems; | ||
48 | 48 | | |||
49 | public slots: | 49 | public Q_SLOTS: | ||
50 | void settingsChanged(); | 50 | void settingsChanged(); | ||
51 | }; | 51 | }; | ||
52 | 52 | | |||
53 | #endif // KDEVPLATFORM_PLUGIN_PROBLEM_HIGHLIGHT_H | 53 | #endif // KDEVPLATFORM_PLUGIN_PROBLEM_HIGHLIGHT_H |