File indexing completed on 2024-05-05 12:22:52

0001 /*
0002     SPDX-FileCopyrightText: 2011-2018 Dominik Haumann <dhaumann@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KATE_HELP_BUTTON_H
0008 #define KATE_HELP_BUTTON_H
0009 
0010 #include <QToolButton>
0011 
0012 class KateHelpButton : public QToolButton
0013 {
0014     Q_OBJECT
0015 
0016 public:
0017     enum IconState { IconColored = 0, IconHidden };
0018 
0019     void setSection(const QString &section);
0020 
0021 public:
0022     explicit KateHelpButton(QWidget *parent = nullptr);
0023 
0024 public Q_SLOTS:
0025     void setIconState(IconState state);
0026     void invokeHelp();
0027 
0028 private:
0029     QString m_section;
0030 };
0031 
0032 #endif