first commit

This commit is contained in:
lidg
2026-08-18 09:40:43 +08:00
commit 0c4fd6844c
70 changed files with 8721 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#ifndef UIHELPERS_H
#define UIHELPERS_H
#include <QStringList>
class QFrame;
class QLabel;
class QTableWidget;
namespace UiHelpers {
QFrame *makeCard(const QString &title);
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);
void addRow(QTableWidget *table, const QStringList &values);
}
#endif // UIHELPERS_H