|
@@ -136,15 +136,22 @@ void ConfigExpertWidget::refreshAddedList()
|
|
|
QHBoxLayout *hBox = new QHBoxLayout(w);
|
|
|
QLabel *idx = new QLabel(QString::number(i));
|
|
|
idx->setFixedWidth(25);
|
|
|
- QLabel *name = new QLabel(QString("专家%1").arg(i * 2));
|
|
|
+ QLabel *name = new QLabel(QString("专家%1").arg(i * 2));
|
|
|
+
|
|
|
QDoubleSpinBox *spin = new QDoubleSpinBox(w);
|
|
|
spin->setRange(0, 1);
|
|
|
spin->setSingleStep(0.01);
|
|
|
spin->setFixedSize(QSize(60, 25));
|
|
|
- QPushButton *button = new QPushButton(NEWFLICON(QFDIcon, Minus)->icon(), "", w);
|
|
|
- button->setFixedSize(QSize(25, 25));
|
|
|
- button->setIconSize(QSize(10, 10));
|
|
|
- button->setToolTip("移除");
|
|
|
+
|
|
|
+ QPushButton *import = new QPushButton(NEWFLICON(FluentIcon, DOWNLOAD)->icon(), "", w);
|
|
|
+ import->setFixedSize(QSize(25, 25));
|
|
|
+ import->setIconSize(QSize(15, 15));
|
|
|
+ import->setToolTip("导入专家数据");
|
|
|
+
|
|
|
+ QPushButton *remove = new QPushButton(NEWFLICON(QFDIcon, Minus)->icon(), "", w);
|
|
|
+ remove->setFixedSize(QSize(25, 25));
|
|
|
+ remove->setIconSize(QSize(10, 10));
|
|
|
+ remove->setToolTip("移除");
|
|
|
|
|
|
hBox->setSpacing(0);
|
|
|
hBox->setMargin(10);
|
|
@@ -153,7 +160,8 @@ void ConfigExpertWidget::refreshAddedList()
|
|
|
hBox->addSpacing(20);
|
|
|
hBox->addWidget(spin, Qt::AlignCenter);
|
|
|
hBox->addStretch();
|
|
|
- hBox->addWidget(button, Qt::AlignRight);
|
|
|
+ hBox->addWidget(import);
|
|
|
+ hBox->addWidget(remove, Qt::AlignRight);
|
|
|
|
|
|
m_addedListWidget->addItem(item);
|
|
|
m_addedListWidget->setItemWidget(item, w);
|