KConfigWidgets

kstylemanager.h
1/*
2 SPDX-FileCopyrightText: 2024 Christoph Cullmann <cullmann@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KSTYLEMANAGER_H
8#define KSTYLEMANAGER_H
9
10#include <kconfigwidgets_export.h>
11
12class QAction;
13class QObject;
14
15/**
16 * Manager for Qt widget styles
17 */
19{
20
21/**
22 * Enforces the style configured by the user with fallback to the Breeze style.
23 *
24 * (following the settings in the application configuration with fallback to kdeglobals)
25 *
26 * Must be called after one has constructed the QApplication.
27 *
28 * If the application is already using the KDE platform theme, the style will not
29 * be touched and the platform theme will ensure proper styling.
30 *
31 * @since 6.3
32 */
33KCONFIGWIDGETS_EXPORT void initStyle();
34
35/**
36 * Creates an action to configure the current used style.
37 *
38 * If the application is running using the KDE platform theme, this will
39 * just return a disabled and hidden action, else it will provide an action to
40 * show a menu to select the style to use for this applications.
41 *
42 * @since 6.3
43 */
44KCONFIGWIDGETS_EXPORT QAction *createConfigureAction(QObject *parent = nullptr);
45}
46
47#endif
Manager for Qt widget styles.
void initStyle()
Enforces the style configured by the user with fallback to the Breeze style.
QAction * createConfigureAction(QObject *parent=nullptr)
Creates an action to configure the current used style.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.