KDEUI
kcolorcollection.cpp
Go to the documentation of this file.
111 KGlobal::dirs()->findAllResources("config", "colors/*", KStandardDirs::NoDuplicates, paletteList);
KColorCollection & operator=(const KColorCollection &)
KColorCollection assignment operator.
Definition: kcolorcollection.cpp:201
void setName(const QString &name)
Set the name of the collection.
Definition: kcolorcollection.cpp:180
Editable editable() const
Returns whether the collection may be edited.
Definition: kcolorcollection.cpp:185
int changeColor(int index, const QColor &newColor, const QString &newColorName=QString())
Change a color.
Definition: kcolorcollection.cpp:253
void setDescription(const QString &desc)
Set the description of the collection.
Definition: kcolorcollection.cpp:170
QString description() const
Get the description of the collection.
Definition: kcolorcollection.cpp:165
void setEditable(Editable editable)
Change whether the collection may be edited.
Definition: kcolorcollection.cpp:190
KColorCollection(const QString &name=QString())
KColorCollection constructor.
Definition: kcolorcollection.cpp:124
static QStringList installedCollections()
Query which KDE color collections are installed.
Definition: kcolorcollection.cpp:108
int addColor(const QColor &newColor, const QString &newColorName=QString())
Add a color.
Definition: kcolorcollection.cpp:246
bool finalize()
virtual bool open(OpenMode flags=QIODevice::ReadWrite)
QStringList findAllResources(const char *type, const QString &filter, SearchOptions options, QStringList &relPaths) const
NoDuplicates
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
static QString locateLocal(const char *type, const QString &filename, bool createDir, const KComponentData &cData=KGlobal::mainComponent())
KStandardDirs * dirs()
const char * name(StandardAction id)
This will return the internal name of a given standard action.
Definition: kstandardaction.cpp:223
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.