kcolorbutton.cpp
bool isDown() const
void changed(const QColor &newColor)
Emitted when the color of the widget is changed, either with setColor() or via user selection...
void setHotSpot(const QPoint &hotspot)
Qt::KeyboardModifiers modifiers() const
const QPalette & palette() const
bool end()
const QMimeData * mimeData() const
void fillRect(const QRectF &rectangle, const QBrush &brush)
void setOption(ColorDialogOption option, bool on)
void setAlphaChannelEnabled(bool alpha)
When set to true, allow the user to change the alpha component of the color.
Definition: kcolorbutton.cpp:158
void setMimeData(QMimeData *data)
QString name() const
QStyle * style() const
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const =0
void setColorData(const QVariant &color)
void setPixmap(const QPixmap &pixmap)
const QColor & color(ColorGroup group, ColorRole role) const
int y() const
void setAttribute(Qt::WidgetAttribute attribute, bool on)
T value() const
bool hasFocus() const
Qt::MouseButtons buttons() const
bool hasText() const
void update()
QSize globalStrut()
void initFrom(const QWidget *widget)
const QColor & color() const
Qt::DropAction exec(Qt::DropActions supportedActions)
bool isEnabled() const
QString text() const
int x() const
QPalette::ColorRole backgroundRole() const
void raise()
void clicked(bool checked)
void setCurrentColor(const QColor &color)
void setText(const QString &text)
virtual void mousePressEvent(QMouseEvent *e)
void setMimeData(QMimeData *src, Mode mode)
QVariant colorData() const
int alpha() const
QRect rect() const
void setAcceptDrops(bool on)
int key() const
QColor selectedColor() const
bool isChecked() const
A pushbutton to display or allow user selection of a color.
Definition: kcolorbutton.h:39
void activateWindow()
virtual void drawControl(ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const =0
void adjust(int dx1, int dy1, int dx2, int dy2)
virtual bool event(QEvent *e)
int length() const
void init(const QWidget *widget)
virtual void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const =0
bool isAlphaChannelEnabled() const
Returns true if the user is allowed to change the alpha component.
Definition: kcolorbutton.cpp:163
QList< QKeySequence > keyBindings(StandardKey key)
void show()
virtual QRect subElementRect(SubElement element, const QStyleOption *option, const QWidget *widget) const =0
QPoint pos() const
virtual void keyPressEvent(QKeyEvent *e)
const QBrush & window() const
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
bool isDefault() const
QClipboard * clipboard()
void getRect(int *x, int *y, int *width, int *height) const
QColor defaultColor() const
Returns the default color or an invalid color if no default color is set.
virtual QSize sizeFromContents(ContentsType type, const QStyleOption *option, const QSize &contentsSize, const QWidget *widget) const =0
int startDragDistance()
bool isValid() const
bool hasColor() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Dec 9 2019 01:43:19 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Dec 9 2019 01:43:19 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.