mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-29 18:42:07 +08:00
7e12817e02
old-commit-hash: ca8d4e417e53e5869ad77e8bfd5da62a78a88de3
25 lines
781 B
C++
25 lines
781 B
C++
#pragma once
|
|
|
|
#include <optional>
|
|
|
|
#include <QDateTime>
|
|
#include <QLayout>
|
|
#include <QPainter>
|
|
#include <QPixmap>
|
|
#include <QSurfaceFormat>
|
|
#include <QWidget>
|
|
|
|
QString getVersion();
|
|
QString getBrand();
|
|
QString getBrandVersion();
|
|
QString getUserAgent();
|
|
std::optional<QString> getDongleId();
|
|
void configFont(QPainter &p, const QString &family, int size, const QString &style);
|
|
void clearLayout(QLayout* layout);
|
|
void setQtSurfaceFormat();
|
|
QString timeAgo(const QDateTime &date);
|
|
void swagLogMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg);
|
|
void initApp(int argc, char *argv[]);
|
|
QWidget* topWidget (QWidget* widget);
|
|
QPixmap loadPixmap(const QString &fileName, const QSize &size = {}, Qt::AspectRatioMode aspectRatioMode = Qt::KeepAspectRatio);
|