Mercurial > minori
annotate src/include/ui_utils.h @ 6:1d82f6e04d7d
Update: add first parts to the settings dialog
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 16 Aug 2023 00:49:17 -0400 |
parents | 23d0d9319a00 |
children | 07a9095eaeed |
rev | line source |
---|---|
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> | |
6
1d82f6e04d7d
Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents:
2
diff
changeset
|
8 #include <QIcon> |
2 | 9 namespace UiUtils { |
6
1d82f6e04d7d
Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents:
2
diff
changeset
|
10 QIcon CreateSideBarIcon(const char* file); |
2 | 11 bool IsInDarkMode(); |
12 std::string GetLengthFromQDateTime(QDateTime stamp); | |
13 QPlainTextEdit* CreateTextParagraph(QWidget* parent, QString title, QString data, QPoint point, QSize size); | |
14 QPlainTextEdit* CreateTextParagraphWithLabels(QWidget* parent, QString title, QString label, QString data, QPoint point, QSize size); | |
15 QPlainTextEdit* CreateSelectableTextParagraph(QWidget* parent, QString title, QString data, QPoint point, QSize size); | |
16 void CreateTextHeader(QWidget* parent, QString title, QPoint point, QSize size); | |
17 }; | |
1 | 18 #endif // __ui_utils_h |