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/CUIComponentComboBox.h

36 lines
844 B
C

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