Kirigami-addons

statefulapplication/private/helper.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 <QObject>
7#include <QtQml>
8#include <QAction>
9#include <QQuickWindow>
10
11using namespace Qt::StringLiterals;
12
13/// \internal This is private API, do not use.
14class Helper : public QObject
15{
17 QML_ELEMENT
18 QML_SINGLETON
19
20public:
21 explicit Helper(QObject *parent = nullptr);
22
23 Q_INVOKABLE QList<QKeySequence> alternateShortcuts(QAction *action) const;
24 Q_INVOKABLE QString iconName(const QIcon &icon) const;
25};
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 Fri Nov 29 2024 11:51:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.