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.
AppFlow/CFDStruct/CUIProperty/CUIComboBox.h

32 lines
591 B
C

3 weeks ago
#ifndef CUICOMBOBOX_H
#define CUICOMBOBOX_H
#include <QWidget>
#include <QComboBox>
class CUIConfig;
class CUI;
class QLabel;
class QHBoxLayout;
class CUIComboBox : public QWidget
{
Q_OBJECT
public:
explicit CUIComboBox(CUIConfig* conf, QVector<CUI*> &subCUI, QWidget *parent = nullptr);
qint32 getLabelWidth();
void setLabelWidth(qint32 width);
private:
void iniUI(QVector<CUI*> &subCUI);
void iniComoboBox();
QComboBox* comboBox;
QLabel* label;
CUIConfig* conf;
QVector<CUI*> Items;
QHBoxLayout* layout;
signals:
};
#endif // CUICOMBOBOX_H