2022-01-23 22:48:36 +02:00
|
|
|
#ifndef QT_UTIL_HPP
|
|
|
|
|
#define QT_UTIL_HPP
|
|
|
|
|
|
|
|
|
|
#include <QString>
|
2022-02-10 15:30:39 +06:00
|
|
|
#include <QWidget>
|
2022-01-23 22:48:36 +02:00
|
|
|
|
|
|
|
|
#include <initializer_list>
|
|
|
|
|
|
2022-02-10 15:30:39 +06:00
|
|
|
class QScreen;
|
2022-11-19 08:49:04 -05:00
|
|
|
namespace util {
|
2024-03-29 08:23:55 -04:00
|
|
|
static constexpr auto UUID_MIN_LENGTH = 36;
|
2022-11-19 08:49:04 -05:00
|
|
|
/* Creates extension list for qt filedialog */
|
|
|
|
|
QString DlgFilter(std::initializer_list<QString> extensions, bool last = false);
|
|
|
|
|
/* Returns screen the widget is on */
|
|
|
|
|
QScreen *screenOfWidget(QWidget *widget);
|
2024-03-29 08:23:55 -04:00
|
|
|
QString currentUuid();
|
|
|
|
|
void storeCurrentUuid();
|
|
|
|
|
bool compareUuid();
|
|
|
|
|
void generateNewMacAdresses();
|
2022-01-23 22:48:36 +02:00
|
|
|
};
|
|
|
|
|
|
2022-02-10 15:30:39 +06:00
|
|
|
#endif
|