feat(parameterUI): add parameter panel
This commit is contained in:
35
src/Gui/ParametersPanel/ParametersPanel.cpp
Normal file
35
src/Gui/ParametersPanel/ParametersPanel.cpp
Normal file
@@ -0,0 +1,35 @@
|
||||
#include "Gui/ParametersPanel/ParametersPanel.h"
|
||||
#include <qboxlayout.h>
|
||||
#include <QSpinBox>
|
||||
#include <qwidget.h>
|
||||
#include <QLineEdit>
|
||||
|
||||
ParametersPanel::ParametersPanel(QWidget *parent, Qt::WindowFlags f)
|
||||
: QWidget(parent, f)
|
||||
{
|
||||
mainLayout_ = new QVBoxLayout();
|
||||
parametersLayout_ = new QVBoxLayout();
|
||||
bgWidget_ = new QWidget();
|
||||
bgWidget_->setLayout(parametersLayout_);
|
||||
|
||||
bgWidget_->setObjectName("ParametersPanelBg");
|
||||
bgWidget_->setStyleSheet(R"(
|
||||
QWidget#ParametersPanelBg {
|
||||
background-color: #282828;
|
||||
border-radius: 10px;
|
||||
}
|
||||
)"
|
||||
);
|
||||
|
||||
mainLayout_->addLayout(parametersLayout_);
|
||||
mainLayout_->addWidget(bgWidget_);
|
||||
|
||||
parametersLayout_->addWidget(new QSpinBox());
|
||||
parametersLayout_->addWidget(new QSpinBox());
|
||||
parametersLayout_->addWidget(new QSpinBox());
|
||||
parametersLayout_->addWidget(new QLineEdit());
|
||||
parametersLayout_->addWidget(new QLineEdit());
|
||||
|
||||
|
||||
setLayout(mainLayout_);
|
||||
}
|
||||
Reference in New Issue
Block a user