29 lines
964 B
C++
29 lines
964 B
C++
#include "CompareNodeConfiguration.h"
|
||
#include <QGridLayout>
|
||
#include <QLabel>
|
||
|
||
|
||
CompareNodeConfiguration::CompareNodeConfiguration(QWidget* p)
|
||
: QFrame(p),
|
||
_type_select(new QComboBox(this)),
|
||
_compare_select(new QComboBox(this)),
|
||
_variable_a(new QComboBox(this)),
|
||
_variable_b(new QComboBox(this))
|
||
{
|
||
this->setFrameStyle(QFrame::WinPanel | QFrame::Sunken);
|
||
auto p_layout = new QGridLayout(this);
|
||
|
||
p_layout->addWidget(new QLabel(u8"类型筛选:", this), 0, 0);
|
||
p_layout->addWidget(_type_select, 0, 1, 1, 5);
|
||
p_layout->addWidget(new QLabel(u8"比较器类型:"), 1, 0);
|
||
p_layout->addWidget(_compare_select, 1, 1, 1, 5);
|
||
p_layout->addWidget(new QLabel(u8"输入变量A:", this), 2, 0);
|
||
p_layout->addWidget(_variable_a, 2, 1, 1, 5);
|
||
p_layout->addWidget(new QLabel(u8"输入变量B:", this), 3, 0);
|
||
p_layout->addWidget(_variable_b, 3, 1, 1, 5);
|
||
p_layout->addWidget(new QWidget(this), 4, 0, 1, 6);
|
||
|
||
p_layout->setColumnStretch(1, 1);
|
||
p_layout->setRowStretch(4, 1);
|
||
}
|