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.
32 lines
714 B
C++
32 lines
714 B
C++
#ifndef CUICOMPONENTCOMBOBOX_H
|
|
#define CUICOMPONENTCOMBOBOX_H
|
|
|
|
#include <QWidget>
|
|
#include "CUIComponentBaseWidget.h"
|
|
#include "CUIComponentBase.h"
|
|
#include <QComboBox>
|
|
|
|
class CUIConfig;
|
|
class CUI;
|
|
class QLabel;
|
|
class QHBoxLayout;
|
|
|
|
class CUIComponentComboBox : public CUIComponentBaseWidget, public CUIComponentBase
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit CUIComponentComboBox(CUIConfig* conf, QVector<CUI*> &subCUI, QWidget *parent = nullptr);
|
|
qint32 getLabelWidth();
|
|
void setLabelWidth(qint32 width);
|
|
private:
|
|
virtual void initUI(QVector<CUI*> &subCUI);
|
|
void iniComoboBox();
|
|
QComboBox* m_comboBox;
|
|
QLabel* m_label;
|
|
QVector<CUI*> m_items;
|
|
signals:
|
|
|
|
};
|
|
|
|
#endif // CUICOMPONENTCOMBOBOX_H
|