|
|
|
@ -135,9 +135,9 @@ public:
|
|
|
|
|
verticalLayout->setStretch(2, 40);
|
|
|
|
|
MainWindow->setCentralWidget(centralwidget);
|
|
|
|
|
|
|
|
|
|
retranslateUi(MainWindow);
|
|
|
|
|
setButtonMes();
|
|
|
|
|
|
|
|
|
|
// 设置按钮点击跳转窗口
|
|
|
|
|
// 设置按钮点击跳转窗口
|
|
|
|
|
connect(monitorButton, &QPushButton::clicked, this, [=](){this->stackedWidget->setCurrentIndex(0); });
|
|
|
|
|
connect(flangeButton, &QPushButton::clicked, this, [=](){this->stackedWidget->setCurrentIndex(1); });
|
|
|
|
|
connect(clearanceButton, &QPushButton::clicked, this, [=](){this->stackedWidget->setCurrentIndex(2); });
|
|
|
|
@ -145,21 +145,21 @@ public:
|
|
|
|
|
|
|
|
|
|
connect(closeButton, &QPushButton::clicked, MainWindow, &QMainWindow::close);
|
|
|
|
|
|
|
|
|
|
// 设置无边框窗口
|
|
|
|
|
// 设置无边框窗口
|
|
|
|
|
MainWindow->setWindowFlags(Qt::FramelessWindowHint);
|
|
|
|
|
|
|
|
|
|
QMetaObject::connectSlotsByName(MainWindow);
|
|
|
|
|
} // setupUi
|
|
|
|
|
|
|
|
|
|
void retranslateUi(QMainWindow *MainWindow)
|
|
|
|
|
|
|
|
|
|
void setButtonMes()
|
|
|
|
|
{
|
|
|
|
|
MainWindow->setWindowTitle(QCoreApplication::translate("MainWindow", "MainWindow", nullptr));
|
|
|
|
|
minButton->setText(QString());
|
|
|
|
|
closeButton->setText(QString());
|
|
|
|
|
monitorButton->setText(QCoreApplication::translate("MainWindow", "\347\233\221\346\216\247\346\200\273\350\247\210", nullptr));
|
|
|
|
|
flangeButton->setText(QCoreApplication::translate("MainWindow", "\346\263\225\345\205\260\345\210\206\346\236\220", nullptr));
|
|
|
|
|
clearanceButton->setText(QCoreApplication::translate("MainWindow", "\345\207\200\347\251\272\345\210\206\346\236\220", nullptr));
|
|
|
|
|
gyroscopeButton->setText(QCoreApplication::translate("MainWindow", "\351\231\200\350\236\272\344\273\252\347\233\221\346\265\213", nullptr));
|
|
|
|
|
monitorButton->setText(u8"监 控 总 览");
|
|
|
|
|
flangeButton->setText(u8"法 兰 分 析");
|
|
|
|
|
clearanceButton->setText(u8"净 空 分 析");
|
|
|
|
|
gyroscopeButton->setText(u8"陀 螺 仪 监 测");
|
|
|
|
|
} // retranslateUi
|
|
|
|
|
|
|
|
|
|
MainWindow(){
|
|
|
|
|