comparison 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
comparison
equal deleted inserted replaced
5:51ae25154b70 6:1d82f6e04d7d
3 #include <QWidget> 3 #include <QWidget>
4 #include <QString> 4 #include <QString>
5 #include <QPoint> 5 #include <QPoint>
6 #include <QSize> 6 #include <QSize>
7 #include <QDateTime> 7 #include <QDateTime>
8 #include <QIcon>
8 namespace UiUtils { 9 namespace UiUtils {
10 QIcon CreateSideBarIcon(const char* file);
9 bool IsInDarkMode(); 11 bool IsInDarkMode();
10 std::string GetLengthFromQDateTime(QDateTime stamp); 12 std::string GetLengthFromQDateTime(QDateTime stamp);
11 QPlainTextEdit* CreateTextParagraph(QWidget* parent, QString title, QString data, QPoint point, QSize size); 13 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); 14 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); 15 QPlainTextEdit* CreateSelectableTextParagraph(QWidget* parent, QString title, QString data, QPoint point, QSize size);