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.
25 lines
688 B
C++
25 lines
688 B
C++
#include "nmGUIComponentComboBox.h"
|
|
#include <QHBoxLayout>
|
|
#include <QLabel>
|
|
#include <QLineEdit>
|
|
#include <QComboBox>
|
|
|
|
Q_DECLARE_METATYPE(int *)
|
|
Q_DECLARE_METATYPE(double *)
|
|
Q_DECLARE_METATYPE(QString *)
|
|
|
|
nmGUIComponentComboBox::nmGUIComponentComboBox(nmDataAttribute* pOriginValue,
|
|
bool enable, QWidget *parent) :
|
|
nmGUIComponentBase(pOriginValue, enable, parent) {
|
|
m_eUIType = NM_GUI_Component_Type_ComboBox;
|
|
this->initUI();
|
|
this->initInitValue();
|
|
this->setStyleSheet("{ background-color: red; }");
|
|
}
|
|
|
|
void nmGUIComponentComboBox::init() {
|
|
this->initUI();
|
|
// 根据输入的可选择项
|
|
this->initInitValue();
|
|
}
|