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) {
|
if (computed < m_minTemp - 0.1) {
|
||||||
m_minTemp = computed;
|
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> newPoints;
|
||||||
QVector<QPointF> oldPoints = m_series->pointsVector();
|
QVector<QPointF> oldPoints = m_series->points();
|
||||||
|
|
||||||
if (oldPoints.count() <= (_DISPLAY_DATA_LENGTH_ - 1)) {
|
if (oldPoints.count() <= (_DISPLAY_DATA_LENGTH_ - 1)) {
|
||||||
oldPoints.append(QPointF(oldPoints.count(), computed));
|
oldPoints.append(QPointF(oldPoints.count(), computed));
|
||||||
|
@ -1389,7 +1389,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="comboBox_baud">
|
<widget class="QComboBox" name="comboBox_baud">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>1</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -1400,9 +1400,6 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>4800</string>
|
<string>4800</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
|
||||||
<iconset theme="applications-development"/>
|
|
||||||
</property>
|
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -1446,7 +1443,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>662</width>
|
<width>662</width>
|
||||||
<height>22</height>
|
<height>24</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -5,6 +5,8 @@ myDialog::myDialog(QWidget *parent) : QDialog(parent)
|
|||||||
{
|
{
|
||||||
QHBoxLayout *hLayout = new QHBoxLayout();
|
QHBoxLayout *hLayout = new QHBoxLayout();
|
||||||
myWidget = new QStackedWidget(this);
|
myWidget = new QStackedWidget(this);
|
||||||
|
myWidget->setMinimumWidth(800);
|
||||||
|
myWidget->setMinimumHeight(400);
|
||||||
OKbtn = new QPushButton(tr("OK"),this);
|
OKbtn = new QPushButton(tr("OK"),this);
|
||||||
Cancelbtn = new QPushButton(tr("Cancel"),this);
|
Cancelbtn = new QPushButton(tr("Cancel"),this);
|
||||||
hLayout->addWidget(OKbtn);
|
hLayout->addWidget(OKbtn);
|
||||||
|
Loading…
Reference in New Issue
Block a user