hyprland-qtutils/utils/update-screen/UpdateScreen.hpp

24 lines
522 B
C++
Raw Normal View History

2024-12-05 21:55:52 +01:00
#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 = "");
};