1 #ifndef _KCOMBOBOXTEST_H
2 #define _KCOMBOBOXTEST_H
3 
4 #include <kcompletion_export.h>
5 
6 #include <QWidget>
7 
8 class QTimer;
9 class QComboBox;
10 class QPushButton;
11 
12 class KComboBox;
13 
14 class KComboBoxTest : public QWidget
15 {
16     Q_OBJECT
17 
18 public:
19     KComboBoxTest(QWidget *parent = nullptr);
20     ~KComboBoxTest() override;
21 
22 private Q_SLOTS:
23     void quitApp();
24     void slotTimeout();
25     void slotDisable();
26 #if KCOMPLETION_BUILD_DEPRECATED_SINCE(5, 81)
27     void slotReturnPressed();
28 #endif
29     void slotReturnPressed(const QString &);
30     void slotActivated(int);
31     void slotActivated(const QString &);
32     void slotCurrentIndexChanged(int);
33     void slotCurrentIndexChanged(const QString &);
34 
35 private:
36     void connectComboSignals(QComboBox *combo);
37 
38     QComboBox *m_qc;
39 
40     KComboBox *m_ro;
41     KComboBox *m_rw;
42     KComboBox *m_hc;
43     KComboBox *m_konqc;
44 
45     QPushButton *m_btnExit;
46     QPushButton *m_btnEnable;
47 
48     QTimer *m_timer;
49 };
50 
51 #endif
52