You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#ifndef CUICOMPONENTCOMBOBOX_H
|
|
|
|
|
#define CUICOMPONENTCOMBOBOX_H
|
|
|
|
|
|
|
|
|
|
#include <QComboBox>
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
|
|
#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<CUIPropertyWidget*>& subCUI,
|
|
|
|
|
QWidget* parent = nullptr);
|
|
|
|
|
qint32 getLabelWidth();
|
|
|
|
|
void setLabelWidth(qint32 width);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
virtual void initUI(QVector<CUIPropertyWidget*>& subCUI);
|
|
|
|
|
void iniComoboBox();
|
|
|
|
|
QComboBox* m_comboBox;
|
|
|
|
|
QLabel* m_label;
|
|
|
|
|
QVector<CUIPropertyWidget*> m_items;
|
|
|
|
|
signals:
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // CUICOMPONENTCOMBOBOX_H
|