Changeset View
Changeset View
Standalone View
Standalone View
duchain/navigation/magicconstantnavigationcontext.h
Show All 23 Lines | |||||
24 | 24 | | |||
25 | namespace Php { | 25 | namespace Php { | ||
26 | 26 | | |||
27 | class MagicConstantNavigationContext : public KDevelop::AbstractNavigationContext { | 27 | class MagicConstantNavigationContext : public KDevelop::AbstractNavigationContext { | ||
28 | public: | 28 | public: | ||
29 | MagicConstantNavigationContext(KDevelop::TopDUContextPointer topContext, | 29 | MagicConstantNavigationContext(KDevelop::TopDUContextPointer topContext, | ||
30 | const KTextEditor::Cursor& position, | 30 | const KTextEditor::Cursor& position, | ||
31 | const QString& constant); | 31 | const QString& constant); | ||
32 | virtual QString name() const; | 32 | QString name() const override; | ||
33 | virtual QString html(bool shorten = false); | 33 | QString html(bool shorten = false) override; | ||
34 | private: | 34 | private: | ||
35 | KDevelop::CursorInRevision m_position; | 35 | KDevelop::CursorInRevision m_position; | ||
36 | QString m_constant; | 36 | QString m_constant; | ||
37 | }; | 37 | }; | ||
38 | 38 | | |||
39 | } | 39 | } | ||
40 | 40 | | |||
41 | #endif // MAGICCONSTANTNAVIGATIONCONTEXT_H | 41 | #endif // MAGICCONSTANTNAVIGATIONCONTEXT_H |