KDEUI
kcolorcollection.cpp
Go to the documentation of this file.
111 KGlobal::dirs()->findAllResources("config", "colors/*", KStandardDirs::NoDuplicates, paletteList);
bool flush()
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
QString & append(QChar ch)
QString description() const
Get the description of the collection.
Definition: kcolorcollection.cpp:165
QString name() const
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
void setName(const QString &name)
Set the name of the collection.
Definition: kcolorcollection.cpp:180
virtual bool open(OpenMode flags=QIODevice::ReadWrite)
KStandardDirs * dirs()
const char * name(StandardAction id)
This will return the internal name of a given standard action.
Definition: kstandardaction.cpp:223
void setEditable(Editable editable)
Change whether the collection may be edited.
Definition: kcolorcollection.cpp:190
QString join(const QString &separator) const
void setDescription(const QString &desc)
Set the description of the collection.
Definition: kcolorcollection.cpp:170
int count() const
Return the number of colors in the collection.
Definition: kcolorcollection.cpp:195
int addColor(const QColor &newColor, const QString &newColorName=QString())
Add a color.
Definition: kcolorcollection.cpp:246
int changeColor(int index, const QColor &newColor, const QString &newColorName=QString())
Change a color.
Definition: kcolorcollection.cpp:253
QString fromLocal8Bit(const char *str, int size)
static QStringList installedCollections()
Query which KDE color collections are installed.
Definition: kcolorcollection.cpp:108
KColorCollection(const QString &name=QString())
KColorCollection constructor.
Definition: kcolorcollection.cpp:124
bool isEmpty() const
QString trimmed() const
typedef Iterator
Editable editable() const
Returns whether the collection may be edited.
Definition: kcolorcollection.cpp:185
iterator end()
bool finalize()
Class for handling color collections ("palettes").
Definition: kcolorcollection.h:42
QByteArray toLatin1() const
QString mid(int position, int n) const
static QString locateLocal(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
QStringList findAllResources(const char *type, const QString &filter=QString(), SearchOptions options=NoSearchOptions) const
iterator begin()
KColorCollection & operator=(const KColorCollection &)
KColorCollection assignment operator.
Definition: kcolorcollection.cpp:201
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.