修正显示界面颜色
This commit is contained in:
@@ -260,7 +260,7 @@ void StateWidget::setLineValue(double value)
|
||||
//qDebug() << "value: " << value;
|
||||
//qDebug() << "m_max: " << m_max;
|
||||
//qDebug() << "percent: " << percent;
|
||||
value_line.resize(label->width() / 2 * percent, 8); //设置线的宽度
|
||||
value_line.resize(label->width() / 2 * percent, 5); //设置线的宽度
|
||||
//qDebug() << u8"线的宽度:" << value_line.width();
|
||||
if(value > 0)
|
||||
{
|
||||
|
||||
@@ -310,8 +310,8 @@ void INS::NAV_Info(Parse::_nav info)
|
||||
setColor(ui->chkComm, (info.state2.communication)?(state::success):(state::failure));
|
||||
|
||||
//工作状态字3
|
||||
setColor(ui->chkDas, (info.state3.das)?(state::success):(state::failure));
|
||||
setColor(ui->chkInstall, (info.state3.install)?(state::success):(state::failure));
|
||||
setColor(ui->chkDas, (info.state3.das)?(state::success):(state::success));
|
||||
setColor(ui->chkInstall, (info.state3.install)?(state::success):(state::success));
|
||||
ui->chkAltitudeInfo->setText("高度阻尼信号:" + info.state3.altitudeInfo);
|
||||
|
||||
if(info.state3.altitudeInfo == tr("无"))
|
||||
|
||||
+2
-2
@@ -2545,13 +2545,13 @@ void MainWindow::gear_Info(Parse::_gear info)
|
||||
(!info.SW[20] && !info.SW[21] && !info.SW[22]&& !info.SW[23]))
|
||||
{
|
||||
healthui->setValue(19,tr("插销解锁"));
|
||||
healthui->setColor(19,HealthUI::state::failure);
|
||||
healthui->setColor(19,HealthUI::state::success);
|
||||
}
|
||||
else if((!info.SW[15] && !info.SW[16] && !info.SW[17]&& !info.SW[18]) &&
|
||||
(info.SW[20] && info.SW[21] && info.SW[22]&& info.SW[23]))
|
||||
{
|
||||
healthui->setValue(19,tr("插销上锁"));
|
||||
healthui->setColor(19,HealthUI::state::success);
|
||||
healthui->setColor(19,HealthUI::state::failure);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -186,7 +186,9 @@ OPMapWidget::OPMapWidget(QWidget *parent, Configuration *config) : QGraphicsView
|
||||
NoOperationTimer->start(20000);//20s不操作
|
||||
|
||||
mouseInfo = new QGraphicsTextItem();
|
||||
mouseInfo->setDefaultTextColor(Qt::white);
|
||||
//mouseInfo->setDefaultTextColor(Qt::white);
|
||||
mouseInfo->setDefaultTextColor(Qt::red);
|
||||
mouseInfo->setFont(QFont("黑体"));
|
||||
mscene.addItem(mouseInfo);
|
||||
|
||||
|
||||
@@ -674,7 +676,7 @@ void OPMapWidget::resizeEvent(QResizeEvent *event)
|
||||
|
||||
|
||||
if(mouseInfo) {
|
||||
mouseInfo->setPos(this->width() - 120,this->height() - 50);
|
||||
mouseInfo->setPos(this->width() - 120,this->height() - 60);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user