#ifndef CUICOMPONENTCOMBOBOX_H #define CUICOMPONENTCOMBOBOX_H #include #include #include "CUIComponentBase.h" #include "CUIComponentBaseWidget.h" class CUIConfig; class CUIPropertyWidget; 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