|
@@ -1,6 +1,7 @@
|
|
|
#include "SchemeOptionWidget.h"
|
|
|
|
|
|
#include <Widgets/Button.h>
|
|
|
+#include <Common/Icon.h>
|
|
|
|
|
|
#include <QLabel>
|
|
|
#include <QBoxLayout>
|
|
@@ -18,6 +19,9 @@ void SchemeOptionWidget::initialize()
|
|
|
{
|
|
|
m_vBoxLayout = new QVBoxLayout(this);
|
|
|
|
|
|
+ m_addButton = new PushButton("新增方案", NEWFLICON(FluentIcon, ADD), this);
|
|
|
+ m_removeButton = new PushButton("删除方案", NEWFLICON(FluentIcon, DELETE), this);
|
|
|
+
|
|
|
m_normalLabel = new QLabel("归一化公式", this);
|
|
|
m_normalLayout = new QVBoxLayout();
|
|
|
m_minButton = new RadioButton("最小值");
|
|
@@ -46,7 +50,7 @@ void SchemeOptionWidget::initialize()
|
|
|
|
|
|
m_schemeLabel = new QLabel("方案排行榜", this);
|
|
|
m_listWidget = new QListWidget(this);
|
|
|
- m_listWidget->setFixedHeight(150);
|
|
|
+ m_listWidget->setFixedHeight(200);
|
|
|
|
|
|
m_listWidget->setStyleSheet("QListWidget {border: 1px solid rgba(0, 0, 0, 0.073);background: rgb(255, 255, "
|
|
|
"255);alternate-background-color: rgb(244, 244, 255);}");
|
|
@@ -54,6 +58,11 @@ void SchemeOptionWidget::initialize()
|
|
|
|
|
|
void SchemeOptionWidget::initLayout()
|
|
|
{
|
|
|
+ m_vBoxLayout->addWidget(m_addButton);
|
|
|
+ m_vBoxLayout->addWidget(m_removeButton);
|
|
|
+
|
|
|
+ m_vBoxLayout->addSpacing(20);
|
|
|
+
|
|
|
m_vBoxLayout->addWidget(m_normalLabel);
|
|
|
m_vBoxLayout->addLayout(m_normalLayout);
|
|
|
m_normalLayout->setContentsMargins(20, 0, 0, 0);
|
|
@@ -78,6 +87,8 @@ void SchemeOptionWidget::initLayout()
|
|
|
m_buttonLayout->addWidget(m_saveButton);
|
|
|
m_buttonLayout->addStretch();
|
|
|
|
|
|
+ m_vBoxLayout->addSpacing(20);
|
|
|
+
|
|
|
m_vBoxLayout->addStretch();
|
|
|
|
|
|
m_vBoxLayout->addWidget(m_schemeLabel);
|