Kirigami2

actionhelper.h
1// SPDX-FileCopyrightText: 2024 Carl Schwan <carl@carlschwan.eu>
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include <QAction>
7#include <QtQml/qqmlregistration.h>
8
9/// \internal This is private API, do not use.
10class ActionHelper : public QObject
11{
13 QML_ELEMENT
14 QML_SINGLETON
15
16public:
17 explicit ActionHelper(QObject *parent = nullptr);
18
19 Q_INVOKABLE QList<QKeySequence> alternateShortcuts(QAction *action) const;
20 Q_INVOKABLE QString iconName(const QIcon &icon) const;
21};
Q_INVOKABLEQ_INVOKABLE
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Nov 17 2024 19:26:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.