#ifndef CUICOMPONENTCOMBOBOX_H #define CUICOMPONENTCOMBOBOX_H #include #include "CUIComponentBaseWidget.h" #include "CUIComponentBase.h" #include class CUIConfig; class CUI; class QLabel; class QHBoxLayout; class CUIComponentComboBox : public CUIComponentBaseWidget, public CUIComponentBase { Q_OBJECT public: explicit CUIComponentComboBox(CUIConfig* conf, QVector &subCUI, QWidget *parent = nullptr); qint32 getLabelWidth(); void setLabelWidth(qint32 width); private: virtual void initUI(QVector &subCUI); void iniComoboBox(); QComboBox* m_comboBox; QLabel* m_label; QVector m_items; signals: }; #endif // CUICOMPONENTCOMBOBOX_H