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,27 @@
|
||||
// SPDX-FileCopyrightText: 2024 Carl Schwan <carl@carlschwan.eu>
|
||||
// SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
#include "actiondata.h"
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
|
||||
ActionData::ActionData(QObject *parent)
|
||||
: QObject(parent)
|
||||
, m_enabledAction(new QAction(this))
|
||||
, m_disabledAction(new QAction(this))
|
||||
{
|
||||
m_enabledAction->setText(u"Enabled Action"_s);
|
||||
|
||||
m_disabledAction->setText(u"Disabled Action"_s);
|
||||
m_disabledAction->setEnabled(false);
|
||||
}
|
||||
|
||||
QAction *ActionData::enabledAction() const
|
||||
{
|
||||
return m_enabledAction;
|
||||
}
|
||||
|
||||
QAction *ActionData::disabledAction() const
|
||||
{
|
||||
return m_disabledAction;
|
||||
}
|
||||
Reference in New Issue
Block a user