File indexing completed on 2024-04-21 14:54:18

0001 /*
0002     SPDX-FileCopyrightText: 2023 David Redondo <kde@david-redondo.de>
0003     SPDX-License-Identifier: LGPL-2.0-or-later
0004 */
0005 
0006 #ifndef KCOLORSCHEMEMENU_H
0007 #define KCOLORSCHEMEMENU_H
0008 
0009 class KActionMenu;
0010 class KColorSchemeManager;
0011 class QObject;
0012 
0013 #include <kconfigwidgets_export.h>
0014 
0015 /**
0016  *  A menu for switching color schemes
0017  */
0018 namespace KColorSchemeMenu
0019 {
0020 /**
0021  * Creates a KActionMenu populated with all the available color schemes.
0022  * All actions are in an action group and when one of the actions is triggered the scheme
0023  * referenced by this action is activated.
0024  *
0025  * @since 5.107
0026  */
0027 KCONFIGWIDGETS_EXPORT KActionMenu *createMenu(KColorSchemeManager *manager, QObject *parent = nullptr);
0028 }
0029 
0030 #endif