KritaWidgets
kis_color_button.cpp
const QColor & color(ColorGroup group, ColorRole role) const
const QColor & color() const
bool paletteBox
Definition: KisDlgInternalColorSelector.h:57
const QPoint & pos() const
int y() const
const QBrush & window() const
void _k_populateMimeData(QMimeData *mimeData, const KoColor &color)
Definition: kis_color_button.cpp:58
QClipboard * clipboard()
void setPen(const QColor &color)
virtual void drawControl(ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const=0
virtual void keyPressEvent(QKeyEvent *e)
bool hasColor() const
QVariant colorData() const
const QPalette & palette() const
void drawRect(const QRectF &rectangle)
QRect rect() const
T value() const
void update()
void changed(const KoColor &newColor)
Emitted when the color of the widget is changed, either with setColor() or via user selection.
void fill(const QColor &color)
void adjust(int dx1, int dy1, int dx2, int dy2)
void initFrom(const QWidget *widget)
bool hasText() const
int x() const
void paintEvent(QPaintEvent *pe) override
Definition: kis_color_button.cpp:199
bool isChecked() const
void setAttribute(Qt::WidgetAttribute attribute, bool on)
void setCurrentColor(const QColor &color)
void setColorData(const QVariant &color)
A pushbutton to display or allow user selection of a color.
Definition: kis_color_button.h:26
void fillRect(const QRectF &rectangle, const QBrush &brush)
void setPreviousColor(KoColor c)
setPreviousColor set the previous color.
Definition: KisDlgInternalColorSelector.cpp:256
QDrag * _k_createDrag(const KoColor &color, QObject *dragsource)
Definition: kis_color_button.cpp:89
Qt::DropAction exec(QFlags< Qt::DropAction > supportedActions)
void setPixmap(const QPixmap &pixmap)
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const=0
bool isDown() const
Qt::KeyboardModifiers modifiers() const
bool end()
void setDefaultColor(const KoColor &c)
Sets the default color to c.
Definition: kis_color_button.cpp:181
QStyle * style() const
void setHotSpot(const QPoint &hotspot)
Qt::MouseButtons buttons() const
int length() const
void keyPressEvent(QKeyEvent *e) override
Definition: kis_color_button.cpp:279
void activateWindow()
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 KisInternalColorSelector class.
Definition: KisDlgInternalColorSelector.h:29
int alpha() const
QSize minimumSizeHint() const override
Definition: kis_color_button.cpp:257
void getRect(int *x, int *y, int *width, int *height) const
bool isAlphaChannelEnabled() const
Returns true if the user is allowed to change the alpha component.
Definition: kis_color_button.cpp:161
QString text() const
void setAcceptDrops(bool on)
void mousePressEvent(QMouseEvent *e) override
Definition: kis_color_button.cpp:297
bool isEnabled() const
void show()
virtual QSize sizeFromContents(ContentsType type, const QStyleOption *option, const QSize &contentsSize, const QWidget *widget) const=0
void setText(const QString &text)
void initStyleOption(QStyleOptionButton *option) const
bool hasFocus() const
int key() const
KoColor defaultColor() const
Returns the default color or an invalid color if no default color is set.
void raise()
virtual void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const=0
int startDragDistance()
void mouseMoveEvent(QMouseEvent *e) override
Definition: kis_color_button.cpp:303
virtual QRect subElementRect(SubElement element, const QStyleOption *option, const QWidget *widget) const=0
void init(const QWidget *widget)
virtual bool event(QEvent *e)
void setMimeData(QMimeData *src, Mode mode)
bool isValid() const
bool isDefault() const
virtual void mousePressEvent(QMouseEvent *e)
QPalette::ColorRole backgroundRole() const
void setMimeData(QMimeData *data)
QList< QKeySequence > keyBindings(StandardKey key)
void setAlphaChannelEnabled(bool alpha)
When set to true, allow the user to change the alpha component of the color.
Definition: kis_color_button.cpp:156
void dragEnterEvent(QDragEnterEvent *) override
Definition: kis_color_button.cpp:264
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.