KritaWidgets
kis_palette_view.cpp
Go to the documentation of this file.
112 chkSpot->setToolTip(i18nc("@info:tooltip", "A spot color is a color that the printer is able to print without mixing the paints it has available to it. The opposite is called a process color."));
119 lnName->setText(i18nc("Part of a default name for a color","Color")+" " + QString::number(m_d->model->colorSet()->colorCount()+1));
148 lnName->setText(i18nc("Part of default name for a new group", "Color Group")+""+QString::number(m_d->model->colorSet()->getGroupNames().size()+1));
169 editableItems->addRow(i18nc("Shows up when deleting a swatch group", "Keep the Colors"), chkKeep);
Definition: KisPaletteDelegate.h:15
bool addEntryWithDialog(KoColor color)
add an entry with a dialog window.
Definition: kis_palette_view.cpp:98
void setCurrentIndex(const QModelIndex &index, QFlags< QItemSelectionModel::SelectionFlag > command)
QFontMetrics fontMetrics() const
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void addRow(QWidget *label, QWidget *field)
QString number(int n, int base)
void clearSpans()
void resizeSection(int logicalIndex, int size)
QAbstractItemModel * model() const
void setItemDelegate(QAbstractItemDelegate *delegate)
void setDragEnabled(bool enable)
QItemSelectionModel * selectionModel() const
void slotScrollerStateChanged(QScroller::State state)
Definition: kis_palette_view.h:103
void setSelectionMode(QAbstractItemView::SelectionMode mode)
void setAllowModification(bool allow)
setAllowModification Set whether doubleclick calls up a modification window.
Definition: kis_palette_view.cpp:228
void setChecked(bool)
QAbstractItemDelegate * itemDelegate() const
const KoColor closestColor(const KoColor &color) const
closestColor determines closest swatch in the active palette and returns it's color as KoColor
Definition: kis_palette_view.cpp:198
void setDefaultSectionSize(int size)
A pushbutton to display or allow user selection of a color.
Definition: kis_color_button.h:26
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setDisplayRenderer(const KoColorDisplayRendererInterface *displayRenderer)
Definition: kis_palette_view.cpp:293
void setCrossedKeyword(const QString &value)
Definition: KisPaletteDelegate.h:23
virtual void setVisible(bool visible)
void sigIndexSelected(const QModelIndex &index)
QVariant data(int role) const
void setText(const QString &)
void selectClosestColor(const KoColor &color)
selectClosestColor select a color that's closest to parameter color
Definition: kis_palette_view.cpp:181
void setWindowTitle(const QString &)
KoColor color
QtCreator treats KoColor as a QColor in incorrect way, so just disable using them in QtCreator https:...
Definition: kis_color_button.h:34
The KisPaletteModel class This, together with KisPaletteView and KisPaletteDelegate forms a mvc way t...
Definition: KisPaletteModel.h:28
int exec()
void setPaletteModel(KisPaletteModel *model)
Definition: kis_palette_view.cpp:210
void setAcceptDrops(bool on)
bool isValid() const
bool toBool() const
void setShowGrid(bool show)
bool removeEntryWithDialog(QModelIndex index)
remove entry with a dialog window.
Definition: kis_palette_view.cpp:161
QHeaderView * verticalHeader() const
void setToolTip(const QString &)
void setCrossedKeyword(const QString &value)
setCrossedKeyword this apparently allows you to set keywords that can cross out colors.
Definition: kis_palette_view.cpp:89
void setDropIndicatorShown(bool enable)
virtual QModelIndexList selectedIndexes() const
QHeaderView * horizontalHeader() const
void setAutoFillBackground(bool enabled)
void slotFGColorChanged(const KoColor &)
This tries to select the closest color in the palette.
Definition: kis_palette_view.cpp:205
void setDragDropMode(DragDropMode behavior)
void setSpan(int row, int column, int rowSpanCount, int columnSpanCount)
void resizeSections(QHeaderView::ResizeMode mode)
virtual void setModel(QAbstractItemModel *model)
QModelIndex currentIndex() const
void clicked(const QModelIndex &index)
void clearSelection()
KisPaletteModel * paletteModel() const
Definition: kis_palette_view.cpp:223
void setVerticalScrollBarPolicy(Qt::ScrollBarPolicy)
void sigColorSelected(const KoColor &)
QSize size() const
void setRowHeight(int row, int height)
void setMinimumSectionSize(int size)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 19 2021 23:44:00 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 19 2021 23:44:00 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.