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