File indexing completed on 2024-05-12 15:34:02
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 #if KCOMPLETION_BUILD_DEPRECATED_SINCE(5, 81) 0027 void slotReturnPressed(); 0028 #endif 0029 void slotReturnPressed(const QString &); 0030 void slotActivated(int); 0031 void slotTextActivated(const QString &); 0032 void slotCurrentIndexChanged(int); 0033 void slotCurrentTextChanged(const QString &); 0034 0035 private: 0036 void connectComboSignals(QComboBox *combo); 0037 0038 QComboBox *m_qc; 0039 0040 KComboBox *m_ro; 0041 KComboBox *m_rw; 0042 KComboBox *m_hc; 0043 KComboBox *m_konqc; 0044 0045 QPushButton *m_btnExit; 0046 QPushButton *m_btnEnable; 0047 0048 QTimer *m_timer; 0049 }; 0050 0051 #endif