fix: max temperature error
This commit is contained in:
parent
3eebd8fe52
commit
18d7395f11
@ -114,11 +114,11 @@ void MainWindow::processTempData(uint data) {
|
||||
}
|
||||
if (computed < m_minTemp - 0.1) {
|
||||
m_minTemp = computed;
|
||||
ui->label_max_temp->setText(tr("最低温度: %1 ℃").arg(m_minTemp));
|
||||
ui->label_min_temp->setText(tr("最低温度: %1 ℃").arg(m_minTemp));
|
||||
}
|
||||
|
||||
QVector<QPointF> newPoints;
|
||||
QVector<QPointF> oldPoints = m_series->pointsVector();
|
||||
QVector<QPointF> oldPoints = m_series->points();
|
||||
|
||||
if (oldPoints.count() <= (_DISPLAY_DATA_LENGTH_ - 1)) {
|
||||
oldPoints.append(QPointF(oldPoints.count(), computed));
|
||||
|
@ -1389,7 +1389,7 @@
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_baud">
|
||||
<property name="currentIndex">
|
||||
<number>1</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
@ -1400,9 +1400,6 @@
|
||||
<property name="text">
|
||||
<string>4800</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="applications-development"/>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
@ -1446,7 +1443,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>662</width>
|
||||
<height>22</height>
|
||||
<height>24</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
|
@ -5,6 +5,8 @@ myDialog::myDialog(QWidget *parent) : QDialog(parent)
|
||||
{
|
||||
QHBoxLayout *hLayout = new QHBoxLayout();
|
||||
myWidget = new QStackedWidget(this);
|
||||
myWidget->setMinimumWidth(800);
|
||||
myWidget->setMinimumHeight(400);
|
||||
OKbtn = new QPushButton(tr("OK"),this);
|
||||
Cancelbtn = new QPushButton(tr("Cancel"),this);
|
||||
hLayout->addWidget(OKbtn);
|
||||
|
Loading…
Reference in New Issue
Block a user