Mercurial > minori
view 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 |
line wrap: on
line source
#ifndef __ui_utils_h #define __ui_utils_h #include <QWidget> #include <QString> #include <QPoint> #include <QSize> #include <QDateTime> #include <QIcon> namespace UiUtils { QIcon CreateSideBarIcon(const char* file); bool IsInDarkMode(); std::string GetLengthFromQDateTime(QDateTime stamp); QPlainTextEdit* CreateTextParagraph(QWidget* parent, QString title, QString data, QPoint point, QSize size); QPlainTextEdit* CreateTextParagraphWithLabels(QWidget* parent, QString title, QString label, QString data, QPoint point, QSize size); QPlainTextEdit* CreateSelectableTextParagraph(QWidget* parent, QString title, QString data, QPoint point, QSize size); void CreateTextHeader(QWidget* parent, QString title, QPoint point, QSize size); }; #endif // __ui_utils_h