KColorScheme
kcolorschememanager.h
28 * QApplication. This is useful for applications which want to provide a selection of custom color
29 * schemes to their user. For example it is very common for photo and painting applications to use
33 * The model() member function provides access to the KColorSchemeModel that the KColorSchemeManager uses
43 * A convenience function that creates a KActionMenu that contains and activates color schemes exists
46 * By default KColorSchemeManager remembers the activated color scheme and restores it on the next
156 KCOLORSCHEME_NO_EXPORT explicit KColorSchemeManager(GuardApplicationConstructor, QGuiApplication *app);
QAbstractItemModel * model() const
A QAbstractItemModel of all available color schemes.
Definition kcolorschememanager.cpp:177
QString activeSchemeId() const
Returns the id of the currently active scheme or an empty string if the default scheme is active.
Definition kcolorschememanager.cpp:255
QModelIndex indexForScheme(const QString &name) const
Returns the model index for the scheme with the given name.
Definition kcolorschememanager.cpp:207
QModelIndex indexForSchemeId(const QString &id) const
Returns the model index for the scheme with the given id.
Definition kcolorschememanager.cpp:198
static KColorSchemeManager * instance()
Returns the manager for the current application instance.
Definition kcolorschememanager.cpp:265
void activateScheme(const QModelIndex &index)
Activates the KColorScheme identified by the provided index.
Definition kcolorschememanager.cpp:222
QString activeSchemeName() const
Returns the name of the currently active scheme or an empty string if the default scheme is active.
Definition kcolorschememanager.cpp:260
void saveSchemeToConfigFile(const QString &schemeName) const
Saves the color scheme to config file.
Definition kcolorschememanager.cpp:241
void setAutosaveChanges(bool autosaveChanges)
Sets color scheme autosaving.
Definition kcolorschememanager.cpp:193
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:38 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:38 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.