mirror of
https://github.com/hyprwm/hyprland-qtutils.git
synced 2024-12-28 05:49:48 +01:00
24 lines
522 B
C++
24 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 = "");
|
||
|
};
|