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 <QAction>
7#include <QObject>
8#include <QQuickWindow>
9
10using namespace Qt::StringLiterals;
11
12/// \internal This is private API, do not use.
13class Helper : public QObject
14{
16 QML_ELEMENT
17 QML_SINGLETON
18
19public:
20 explicit Helper(QObject *parent = nullptr);
21
22 Q_INVOKABLE QList<QKeySequence> alternateShortcuts(QAction *action) const;
23 Q_INVOKABLE QString iconName(const QIcon &icon) const;
24};
Q_INVOKABLEQ_INVOKABLE
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 3 2025 11:46:31 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.