hyprland-qtutils/utils/update-screen/UpdateScreen.hpp
2024-12-05 20:55:52 +00:00

23 lines
522 B
C++

#pragma once
#include <QObject>
#include <QQmlApplicationEngine>
#include <QPixmap>
#include <QIcon>
#include <qcontainerfwd.h>
#include <qqmlintegration.h>
#include <qtmetamacros.h>
class CUpdateScreen : public QObject {
Q_OBJECT;
QML_NAMED_ELEMENT(UpdateScreen);
QML_SINGLETON;
Q_PROPERTY(QString newVersion MEMBER newVersion CONSTANT);
public:
explicit CUpdateScreen(QObject* parent = nullptr);
QString newVersion;
Q_INVOKABLE void onButtonPress(QString buttonName = "");
};