feat(production): 界面表格优化
This commit is contained in:
+7
-2
@@ -1,12 +1,12 @@
|
||||
#include "orderpage.h"
|
||||
#include "ui_orderpage.h"
|
||||
#include "uihelpers.h"
|
||||
|
||||
#include <QAbstractItemView>
|
||||
#include <QComboBox>
|
||||
#include <QDialog>
|
||||
#include <QDialogButtonBox>
|
||||
#include <QFormLayout>
|
||||
#include <QHeaderView>
|
||||
#include <QLineEdit>
|
||||
#include <QMessageBox>
|
||||
#include <QPushButton>
|
||||
@@ -58,7 +58,12 @@ OrderPage::OrderPage(QWidget *parent)
|
||||
<< "订单编号" << "生产号" << "图纸号" << "批次号" << "计划"
|
||||
<< "OK" << "NG" << "状态" << "检测模式" << "起始托盘"
|
||||
<< "起始位置" << "开始时间" << "结束时间" << "备注");
|
||||
table->horizontalHeader()->setStretchLastSection(true);
|
||||
const int dateTimeWidth = UiHelpers::textColumnWidth(
|
||||
table, "2026-10-30 23:59:59");
|
||||
UiHelpers::configureTableColumns(
|
||||
table, QList<int>() << 120 << 105 << 105 << 100 << 65 << 55 << 55
|
||||
<< 80 << 105 << 80 << 80 << dateTimeWidth
|
||||
<< dateTimeWidth << 120);
|
||||
table->verticalHeader()->setVisible(false);
|
||||
table->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||
table->setAlternatingRowColors(true);
|
||||
|
||||
Reference in New Issue
Block a user