File indexing completed on 2025-01-26 05:06:21

0001 /*
0002     SPDX-FileCopyrightText: 2014 Eike Hein <hein@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QObject>
0010 
0011 class QAction;
0012 
0013 class MenuHelper : public QObject
0014 {
0015     Q_OBJECT
0016 
0017 public:
0018     explicit MenuHelper(QObject *parent = nullptr);
0019     ~MenuHelper() override;
0020 
0021     Q_INVOKABLE QString iconName(QAction *action) const;
0022 
0023     Q_INVOKABLE void setMenu(QAction *action, QObject *menu);
0024 };