Krita
Palette.cpp
97 return new Swatch(d->palette->getSwatchFromGroup((index - row) / columnCount(), row, groupName));
void setColumnCount(int columns)
setColumnCount Set the amount of columns this palette should use.
Definition: Palette.cpp:39
A Resource represents a gradient, pattern, brush tip, brush preset, palette or workspace definition.
Definition: Resource.h:30
void moveGroup(const QString &groupName, const QString &groupNameInsertBefore=QString())
moveGroup move the group to before groupNameInsertBefore.
Definition: Palette.cpp:130
void changeGroupName(QString oldGroupName, QString newGroupName)
changeGroupName change the group name.
Definition: Palette.cpp:125
Swatch * colorSetEntryFromGroup(int index, const QString &groupName)
colorSetEntryFromGroup
Definition: Palette.cpp:91
void addEntry(Swatch entry, QString groupName=QString())
addEntry add an entry to a group.
Definition: Palette.cpp:100
void setComment(QString comment)
setComment set the comment or description associated with the palette.
Definition: Palette.cpp:51
Swatch * colorSetEntryByIndex(int index)
colorSetEntryByIndex get the colorsetEntry from the global index.
Definition: Palette.cpp:81
void removeEntry(int index, const QString &groupName)
removeEntry remove the entry at index from the group groupName.
Definition: Palette.cpp:105
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 29 2023 04:08:11 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 29 2023 04:08:11 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.