Changeset View
Changeset View
Standalone View
Standalone View
src/variableeditor/katehelpbutton.h
Show All 22 Lines | |||||
23 | 23 | | |||
24 | #include <QToolButton> | 24 | #include <QToolButton> | ||
25 | 25 | | |||
26 | class KateHelpButton : public QToolButton | 26 | class KateHelpButton : public QToolButton | ||
27 | { | 27 | { | ||
28 | Q_OBJECT | 28 | Q_OBJECT | ||
29 | 29 | | |||
30 | public: | 30 | public: | ||
31 | enum IconState { IconColored = 0, IconGrayscaled, IconHidden }; | 31 | enum IconState { IconColored = 0, IconHidden }; | ||
32 | 32 | | |||
33 | void setSection(const QString §ion); | 33 | void setSection(const QString §ion); | ||
34 | 34 | | |||
35 | public: | 35 | public: | ||
36 | explicit KateHelpButton(QWidget *parent = nullptr); | 36 | explicit KateHelpButton(QWidget *parent = nullptr); | ||
37 | virtual ~KateHelpButton(); | 37 | virtual ~KateHelpButton(); | ||
38 | 38 | | |||
39 | public Q_SLOTS: | 39 | public Q_SLOTS: | ||
40 | void setIconState(IconState state); | 40 | void setIconState(IconState state); | ||
41 | void invokeHelp(); | 41 | void invokeHelp(); | ||
42 | 42 | | |||
43 | private: | 43 | private: | ||
44 | QString m_section; | 44 | QString m_section; | ||
45 | }; | 45 | }; | ||
46 | 46 | | |||
47 | #endif | 47 | #endif |