Changeset View
Changeset View
Standalone View
Standalone View
docs/phpdocumentationwidget.h
Show All 34 Lines | |||||
35 | class PhpDocsPlugin; | 35 | class PhpDocsPlugin; | ||
36 | 36 | | |||
37 | class PhpDocumentationWidget : public QStackedWidget | 37 | class PhpDocumentationWidget : public QStackedWidget | ||
38 | { | 38 | { | ||
39 | Q_OBJECT | 39 | Q_OBJECT | ||
40 | 40 | | |||
41 | public: | 41 | public: | ||
42 | explicit PhpDocumentationWidget(KDevelop::DocumentationFindWidget* find, const QUrl &url, | 42 | explicit PhpDocumentationWidget(KDevelop::DocumentationFindWidget* find, const QUrl &url, | ||
43 | PhpDocsPlugin* provider, QWidget* parent = 0); | 43 | PhpDocsPlugin* provider, QWidget* parent = nullptr); | ||
44 | ~PhpDocumentationWidget(); | 44 | ~PhpDocumentationWidget() override; | ||
45 | 45 | | |||
46 | private slots: | 46 | private slots: | ||
47 | /// used to inject some custom CSS to alter the remote php.net site | 47 | /// used to inject some custom CSS to alter the remote php.net site | ||
48 | void documentLoaded(); | 48 | void documentLoaded(); | ||
49 | void linkClicked(const QUrl& url); | 49 | void linkClicked(const QUrl& url); | ||
50 | 50 | | |||
51 | private: | 51 | private: | ||
52 | KDevelop::StandardDocumentationView* m_part; | 52 | KDevelop::StandardDocumentationView* m_part; | ||
53 | QWidget* m_loading; | 53 | QWidget* m_loading; | ||
54 | QTemporaryFile* m_styleSheet; | 54 | QTemporaryFile* m_styleSheet; | ||
55 | PhpDocsPlugin* m_provider; | 55 | PhpDocsPlugin* m_provider; | ||
56 | }; | 56 | }; | ||
57 | 57 | | |||
58 | #endif // PHPDOCUMENTATIONWIDGET_H | 58 | #endif // PHPDOCUMENTATIONWIDGET_H |