Advance Wayland and KDE package bring-up
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
// SPDX-FileCopyrightText: 2024 Carl Schwan <carl@carlschwan.eu>
|
||||
// SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QAction>
|
||||
#include <QObject>
|
||||
#include <qqmlregistration.h>
|
||||
|
||||
class ActionData : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
QML_ELEMENT
|
||||
QML_SINGLETON
|
||||
|
||||
Q_PROPERTY(QAction *enabledAction READ enabledAction CONSTANT)
|
||||
Q_PROPERTY(QAction *disabledAction READ disabledAction CONSTANT)
|
||||
|
||||
public:
|
||||
explicit ActionData(QObject *parent = nullptr);
|
||||
|
||||
QAction *enabledAction() const;
|
||||
QAction *disabledAction() const;
|
||||
|
||||
private:
|
||||
QAction *const m_enabledAction;
|
||||
QAction *const m_disabledAction;
|
||||
};
|
||||
Reference in New Issue
Block a user