|
@@ -32,8 +32,8 @@ void ConfigMeasureDataWidget::initWidget()
|
|
m_tipsLabel = new QLabel("已导入的数据将会显示在这里", this);
|
|
m_tipsLabel = new QLabel("已导入的数据将会显示在这里", this);
|
|
m_tipsLabel->setObjectName("tipsLabel");
|
|
m_tipsLabel->setObjectName("tipsLabel");
|
|
m_tipsLabel->setHidden(true);
|
|
m_tipsLabel->setHidden(true);
|
|
- m_exportButton = new QPushButton(NEWFLICON(FluentIcon, DOWNLOAD)->icon(), "", this);
|
|
|
|
- m_exportButton->setToolTip("导入数据");
|
|
|
|
|
|
+ m_addButton = new QPushButton(NEWFLICON(FluentIcon, DOWNLOAD)->icon(), "", this);
|
|
|
|
+ m_addButton->setToolTip("导入数据");
|
|
m_listWidget = new QListWidget(this);
|
|
m_listWidget = new QListWidget(this);
|
|
|
|
|
|
setStyleSheet("#titleLabel {color:#333333; font-size:16px}"
|
|
setStyleSheet("#titleLabel {color:#333333; font-size:16px}"
|
|
@@ -44,8 +44,7 @@ void ConfigMeasureDataWidget::initWidget()
|
|
"QPushButton::pressed {background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #dadbde, "
|
|
"QPushButton::pressed {background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #dadbde, "
|
|
"stop: 1 #f6f7fa);}"
|
|
"stop: 1 #f6f7fa);}"
|
|
"QListWidget {border: 1px solid rgba(0, 0, 0, 0.073);}"
|
|
"QListWidget {border: 1px solid rgba(0, 0, 0, 0.073);}"
|
|
- "QListView::item {background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #ffffff, stop: 0.9 "
|
|
|
|
- "#ffffff,stop: 1 #eeeeee);height:44;}");
|
|
|
|
|
|
+ "QListView::item {height:44;}");
|
|
}
|
|
}
|
|
|
|
|
|
void ConfigMeasureDataWidget::initLayout()
|
|
void ConfigMeasureDataWidget::initLayout()
|
|
@@ -62,15 +61,15 @@ void ConfigMeasureDataWidget::initLayout()
|
|
|
|
|
|
m_headerLayout->addWidget(m_listTitleLabel);
|
|
m_headerLayout->addWidget(m_listTitleLabel);
|
|
m_headerLayout->addStretch();
|
|
m_headerLayout->addStretch();
|
|
- m_headerLayout->addWidget(m_exportButton);
|
|
|
|
|
|
+ m_headerLayout->addWidget(m_addButton);
|
|
}
|
|
}
|
|
|
|
|
|
void ConfigMeasureDataWidget::connectSignalsAndSlots()
|
|
void ConfigMeasureDataWidget::connectSignalsAndSlots()
|
|
{
|
|
{
|
|
- connect(m_exportButton, &PushButton::clicked, this, &ConfigMeasureDataWidget::slotExportClicked);
|
|
|
|
|
|
+ connect(m_addButton, &PushButton::clicked, this, &ConfigMeasureDataWidget::slotAddDataClicked);
|
|
}
|
|
}
|
|
|
|
|
|
-void ConfigMeasureDataWidget::slotExportClicked()
|
|
|
|
|
|
+void ConfigMeasureDataWidget::slotAddDataClicked()
|
|
{
|
|
{
|
|
qDebug() << __FUNCTION__ << __LINE__ << endl;
|
|
qDebug() << __FUNCTION__ << __LINE__ << endl;
|
|
}
|
|
}
|