KProperty
KColorCollection.cpp
57 QString filename = QStandardPaths::locate(QStandardPaths::GenericConfigLocation, QLatin1String("colors/") + name);
145 QString filename = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QLatin1String("/colors/")
155 description = QLatin1Char('#') + description.split(QLatin1Char('\n'), QString::KeepEmptyParts).join(QStringLiteral("\n#"));
KColorCollection & operator=(const KColorCollection &)
KColorCollection assignment operator.
Definition KColorCollection.cpp:204
Editable editable() const
Returns whether the collection may be edited.
Definition KColorCollection.cpp:188
int changeColor(int index, const QColor &newColor, const QString &newColorName=QString())
Change a color.
Definition KColorCollection.cpp:260
void setDescription(const QString &desc)
Set the description of the collection.
Definition KColorCollection.cpp:173
QString description() const
Get the description of the collection.
Definition KColorCollection.cpp:168
void setEditable(Editable editable)
Change whether the collection may be edited.
Definition KColorCollection.cpp:193
KColorCollection(const QString &name=QString())
KColorCollection constructor.
Definition KColorCollection.cpp:126
static QStringList installedCollections()
Query which KDE color collections are installed.
Definition KColorCollection.cpp:111
int addColor(const QColor &newColor, const QString &newColorName=QString())
Add a color.
Definition KColorCollection.cpp:253
QString name(StandardAction id)
void getRgb(int *r, int *g, int *b, int *a) const const
Files
QStringList entryList(Filters filters, SortFlags sort) const const
ReadOnly
void append(QList< T > &&value)
qsizetype count() const const
qsizetype size() const const
bool commit()
virtual bool open(OpenMode mode) override
LocateDirectory
GenericConfigLocation
QString locate(StandardLocation type, const QString &fileName, LocateOptions options)
QStringList locateAll(StandardLocation type, const QString &fileName, LocateOptions options)
QString writableLocation(StandardLocation type)
QString fromLocal8Bit(QByteArrayView str)
bool isEmpty() const const
QStringList split(QChar sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
QString trimmed() const const
QString join(QChar separator) const const
qsizetype removeDuplicates()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.