22 lines
519 B
C++
22 lines
519 B
C++
#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
|