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_);
|
||||
}
|
||||
16
src/Gui/ParametersPanel/ParametersPanel.h
Normal file
16
src/Gui/ParametersPanel/ParametersPanel.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <QWidget>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
class ParametersPanel
|
||||
: public QWidget
|
||||
{
|
||||
public:
|
||||
ParametersPanel(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
|
||||
private:
|
||||
QVBoxLayout* mainLayout_;
|
||||
QVBoxLayout* parametersLayout_;
|
||||
QWidget* bgWidget_;
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user