feat: 调整主窗口微丝产线表格字体和行高,以提升可读性
This commit is contained in:
parent
5be57a052b
commit
1568d4c5ee
BIN
db/jtDB.db
BIN
db/jtDB.db
Binary file not shown.
@ -832,16 +832,20 @@ class MainWindowUI(QMainWindow):
|
||||
|
||||
self.process_table = QTableWidget(8, total_columns) # 8行:1行标题区域 + 1行列标题 + 6行数据
|
||||
|
||||
# 为微丝产线表格设置更大的字体
|
||||
process_font = QFont("微软雅黑", 16) # 比normal_font(12)大2个字号
|
||||
self.process_table.setFont(process_font)
|
||||
|
||||
# 应用通用表格设置
|
||||
self.setup_table_common(self.process_table)
|
||||
|
||||
# 设置行高
|
||||
self.process_table.setRowHeight(0, 30) # 标题区域行高
|
||||
self.process_table.setRowHeight(1, 30) # 列标题行高
|
||||
# 设置行高 - 适当增加以适应新字号
|
||||
self.process_table.setRowHeight(0, 40) # 标题区域行高,从30增加到35
|
||||
self.process_table.setRowHeight(1, 40) # 列标题行高,从30增加到35
|
||||
|
||||
# 设置数据行的行高
|
||||
for row in range(2, 8): # 工序行
|
||||
self.process_table.setRowHeight(row, 35)
|
||||
self.process_table.setRowHeight(row, 45) # 从35增加到40
|
||||
|
||||
# 设置列宽
|
||||
self.set_process_table_column_widths()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user