|
@@ -45,9 +45,13 @@ void ConfigExpertWidget::initialize()
|
|
|
m_addedListHeader->setObjectName("addedListHeader");
|
|
|
m_addedListHeader->setFixedHeight(30);
|
|
|
m_addedListHeaderLayout = new QHBoxLayout(m_addedListHeader);
|
|
|
- m_addedListTitleLabel = new QLabel("已配置权重", this);
|
|
|
+ m_addedListTitleLabel = new QLabel("已添加", this);
|
|
|
m_addedListTitleLabel->setObjectName("addedListTitleLabel");
|
|
|
m_addedListTitleLabel->setMargin(5);
|
|
|
+ m_addedListTipsLabel = new QLabel("注:已添加专家的权重之和须等于1", this);
|
|
|
+ m_addedListTipsLabel->setObjectName("addedListTipsLabel");
|
|
|
+ m_addedListTipsLabel->setFixedHeight(20);
|
|
|
+
|
|
|
m_saveButton = new QPushButton(NEWFLICON(FluentIcon, SAVE)->icon(), "", this);
|
|
|
m_saveButton->setObjectName("saveButton");
|
|
|
m_saveButton->setFixedSize(QSize(28, 28));
|
|
@@ -87,6 +91,7 @@ void ConfigExpertWidget::initLayout()
|
|
|
|
|
|
m_addedWidgetLayout->addWidget(m_addedListHeader);
|
|
|
m_addedWidgetLayout->addWidget(m_addedListWidget);
|
|
|
+ m_addedWidgetLayout->addWidget(m_addedListTipsLabel, Qt::AlignBottom);
|
|
|
|
|
|
m_expWidgetLayout->addWidget(m_expListHeader);
|
|
|
m_expWidgetLayout->addWidget(m_expListWidget);
|
|
@@ -103,6 +108,7 @@ void ConfigExpertWidget::initLayout()
|
|
|
m_splitter->setStretchFactor(1, 3);
|
|
|
|
|
|
setStyleSheet("#titleLabel {color:#333333; font-size:16px}"
|
|
|
+ "#addedListTipsLabel {color:#999999;}"
|
|
|
"#addedListHeader {background-color:#f8f8f8;border: 1px solid rgba(0, 0, 0, 0.073);}"
|
|
|
"#expListHeader {background-color:#f8f8f8;border: 1px solid rgba(0, 0, 0, 0.073);}"
|
|
|
"QPushButton {border: 0;background-color: qlineargradient(x1: 0, y1: 0, x2: "
|
|
@@ -114,8 +120,8 @@ void ConfigExpertWidget::initLayout()
|
|
|
"QListView::item {background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #ffffff, stop: 0.9 "
|
|
|
"#ffffff,stop: 1 #eeeeee);height:44;}"
|
|
|
"QDoubleSpinBox {border: 1px solid rgba(0, 0, 0, 0.173);}"
|
|
|
- "#addedListTitleLabel {font:bold;}"
|
|
|
- "#expListTitleLabel {font:bold;}");
|
|
|
+ "#addedListTitleLabel {font:bold; font-size:12px;}"
|
|
|
+ "#expListTitleLabel {font:bold; font-size:12px;}");
|
|
|
}
|
|
|
|
|
|
void ConfigExpertWidget::connectSignalsAndSlots() { }
|
|
@@ -136,7 +142,7 @@ void ConfigExpertWidget::refreshAddedList()
|
|
|
spin->setSingleStep(0.01);
|
|
|
spin->setFixedSize(QSize(60, 25));
|
|
|
QPushButton *button = new QPushButton(NEWFLICON(QFDIcon, Minus)->icon(), "", w);
|
|
|
- button->setFixedSize(QSize(20, 20));
|
|
|
+ button->setFixedSize(QSize(25, 25));
|
|
|
button->setIconSize(QSize(10, 10));
|
|
|
|
|
|
hBox->setSpacing(0);
|
|
@@ -167,7 +173,7 @@ void ConfigExpertWidget::refreshExpList()
|
|
|
idx->setFixedWidth(25);
|
|
|
QLabel *name = new QLabel(QString("专家%1").arg(i));
|
|
|
QPushButton *button = new QPushButton(NEWFLICON(FluentIcon, ADD)->icon(), "", w);
|
|
|
- button->setFixedSize(QSize(20, 20));
|
|
|
+ button->setFixedSize(QSize(25, 25));
|
|
|
button->setIconSize(QSize(10, 10));
|
|
|
|
|
|
if (i % 2 == 0 && i <= 6) {
|