2
|
1 #ifndef __ui_utils_h
|
|
2 #define __ui_utils_h
|
|
3 #include <QWidget>
|
|
4 #include <QString>
|
|
5 #include <QPoint>
|
|
6 #include <QSize>
|
|
7 #include <QDateTime>
|
|
8 namespace UiUtils {
|
|
9 bool IsInDarkMode();
|
|
10 std::string GetLengthFromQDateTime(QDateTime stamp);
|
|
11 QPlainTextEdit* CreateTextParagraph(QWidget* parent, QString title, QString data, QPoint point, QSize size);
|
|
12 QPlainTextEdit* CreateTextParagraphWithLabels(QWidget* parent, QString title, QString label, QString data, QPoint point, QSize size);
|
|
13 QPlainTextEdit* CreateSelectableTextParagraph(QWidget* parent, QString title, QString data, QPoint point, QSize size);
|
|
14 void CreateTextHeader(QWidget* parent, QString title, QPoint point, QSize size);
|
|
15 };
|
1
|
16 #endif // __ui_utils_h |