File indexing completed on 2024-04-28 03:53:11
0001 #ifndef _KCOMBOBOXTEST_H 0002 #define _KCOMBOBOXTEST_H 0003 0004 #include <kcompletion_export.h> 0005 0006 #include <QWidget> 0007 0008 class QTimer; 0009 class QComboBox; 0010 class QPushButton; 0011 0012 class KComboBox; 0013 0014 class KComboBoxTest : public QWidget 0015 { 0016 Q_OBJECT 0017 0018 public: 0019 KComboBoxTest(QWidget *parent = nullptr); 0020 ~KComboBoxTest() override; 0021 0022 private Q_SLOTS: 0023 void quitApp(); 0024 void slotTimeout(); 0025 void slotDisable(); 0026 void slotReturnPressed(const QString &); 0027 void slotActivated(int); 0028 void slotTextActivated(const QString &); 0029 void slotCurrentIndexChanged(int); 0030 void slotCurrentTextChanged(const QString &); 0031 0032 private: 0033 void connectComboSignals(QComboBox *combo); 0034 0035 QComboBox *m_qc; 0036 0037 KComboBox *m_ro; 0038 KComboBox *m_rw; 0039 KComboBox *m_hc; 0040 KComboBox *m_konqc; 0041 0042 QPushButton *m_btnExit; 0043 QPushButton *m_btnEnable; 0044 0045 QTimer *m_timer; 0046 }; 0047 0048 #endif