feat(production): 界面表格优化

This commit is contained in:
lidg
2026-11-05 14:14:29 +08:00
parent 5f4649832e
commit 6da5622181
10 changed files with 183 additions and 18 deletions
+4
View File
@@ -1,6 +1,7 @@
#ifndef UIHELPERS_H
#define UIHELPERS_H
#include <QList>
#include <QStringList>
class QFrame;
@@ -14,6 +15,9 @@ QLabel *makeBadge(const QString &text, const QString &color);
QLabel *makeStatusCell(const QString &text, const QString &color);
QLabel *makeSquareStatusCell(const QString &text, const QString &color);
QTableWidget *makeTable(const QStringList &headers);
int textColumnWidth(const QTableWidget *table, const QString &text);
void configureTableColumns(QTableWidget *table, const QList<int> &baseWidths,
int cappedColumn = -1, int maximumSharePercent = 100);
void addRow(QTableWidget *table, const QStringList &values);
}