1/*
2 SPDX-FileCopyrightText: 2023 David Redondo <kde@david-redondo.de>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#ifndef KCOLORSCHEMEMENU_H
7#define KCOLORSCHEMEMENU_H
8
9class KActionMenu;
10class KColorSchemeManager;
11class QObject;
12
13#include <kconfigwidgets_export.h>
14
15/**
16 * A menu for switching color schemes
17 */
18namespace KColorSchemeMenu
19{
20/**
21 * Creates a KActionMenu populated with all the available color schemes.
22 * All actions are in an action group and when one of the actions is triggered the scheme
23 * referenced by this action is activated.
24 *
25 * @since 5.107
26 */
27KCONFIGWIDGETS_EXPORT KActionMenu *createMenu(KColorSchemeManager *manager, QObject *parent = nullptr);
28}
29
30#endif
31

source code of kconfigwidgets/src/kcolorschememenu.h