This commit is contained in:
lidg
2026-10-19 11:17:12 +08:00
parent 8f9a89a61e
commit 23674e0ede
20 changed files with 1509 additions and 333 deletions
+6 -1
View File
@@ -5,6 +5,7 @@
#include "pages/devicepage.h"
#include "pages/logpage.h"
#include "pages/orderpage.h"
#include "pages/qualitypage.h"
#include "pages/rackpage.h"
#include "pages/uihelpers.h"
#include "services/logservice.h"
@@ -24,6 +25,7 @@ Widget::Widget(QWidget *parent)
, pageStack(nullptr)
, dashboardPage(nullptr)
, logPage(nullptr)
, qualityPage(nullptr)
, systemStateLabel(nullptr)
, currentOrderLabel(nullptr)
, currentWorkpieceLabel(nullptr)
@@ -110,7 +112,8 @@ void Widget::setupMainArea(QVBoxLayout *rootLayout)
navList = new QListWidget;
navList->setFixedWidth(170);
navList->addItems(QStringList() << "控制面板" << "订单管理" << "料架/托盘" << "设备状态" << "日志");
navList->addItems(QStringList() << "控制面板" << "订单管理" << "料架/托盘"
<< "设备状态" << "日志" << "质量管理");
navList->setCurrentRow(0);
bodyLayout->addWidget(navList);
@@ -119,6 +122,7 @@ void Widget::setupMainArea(QVBoxLayout *rootLayout)
RackPage *rackPage = new RackPage(this);
DevicePage *devicePage = new DevicePage(this);
logPage = new LogPage(this);
qualityPage = new QualityPage(this);
pageStack = new QStackedWidget;
pageStack->addWidget(dashboardPage);
@@ -126,6 +130,7 @@ void Widget::setupMainArea(QVBoxLayout *rootLayout)
pageStack->addWidget(rackPage);
pageStack->addWidget(devicePage);
pageStack->addWidget(logPage);
pageStack->addWidget(qualityPage);
bodyLayout->addWidget(pageStack, 1);
rootLayout->addLayout(bodyLayout, 1);