// SPDX-FileCopyrightText: 2024 Carl Schwan // SPDX-License-Identifier: LGPL-2.1-or-later #include "actionhelper.h" ActionHelper::ActionHelper(QObject *parent) : QObject(parent) { } QString ActionHelper::iconName(const QIcon &icon) const { return icon.name(); } QList ActionHelper::alternateShortcuts(QAction *action) const { if (!action || action->shortcuts().length() <= 1) { return {}; } else { return action->shortcuts().mid(1); } }