File indexing completed on 2024-04-21 15:05:26

0001 /*
0002     SPDX-FileCopyrightText: 2006 Hamish Rodda <rodda@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KSELECTACTION_TEST_H
0008 #define KSELECTACTION_TEST_H
0009 
0010 #include <QMainWindow>
0011 
0012 class KSelectAction;
0013 
0014 class SelectActionTest : public QMainWindow
0015 {
0016     Q_OBJECT
0017 
0018 public:
0019     SelectActionTest(QWidget *parent = nullptr);
0020 
0021 public Q_SLOTS:
0022     void actionTriggered(QAction *action);
0023     void indexTriggered(int index);
0024     void textTriggered(const QString &text);
0025 
0026     void slotActionTriggered(bool state);
0027 
0028     void addAction();
0029     void removeAction();
0030 
0031 private:
0032     KSelectAction *m_comboSelect;
0033     KSelectAction *m_buttonSelect;
0034 };
0035 
0036 #endif