Kirigami-addons

statefulapplication/private/helper.cpp
1// SPDX-FileCopyrightText: 2024 Carl Schwan <carl@carlschwan.eu>
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#include "helper.h"
5
6#include <KWindowConfig>
7#include <KConfig>
8
9Helper::Helper(QObject *parent)
10 : QObject(parent)
11{}
12
13QString Helper::iconName(const QIcon &icon) const
14{
15 return icon.name();
16}
17
18QList<QKeySequence> Helper::alternateShortcuts(QAction *action) const
19{
20 if (!action || action->shortcuts().length() <= 1) {
21 return {};
22 } else {
23 return action->shortcuts().mid(1);
24 }
25}
QList< QKeySequence > shortcuts() const const
QString name() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.