feat(production): 界面表格优化
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user