KDEUI
kcolorbutton.cpp
Go to the documentation of this file.
225 QColor color=KColorMimeData::fromMimeData( QApplication::clipboard()->mimeData( QClipboard::Clipboard ));
virtual void mouseMoveEvent(QMouseEvent *e)
Definition kcolorbutton.cpp:238
virtual void mousePressEvent(QMouseEvent *e)
Definition kcolorbutton.cpp:232
void changed(const QColor &newColor)
Emitted when the color of the widget is changed, either with setColor() or via user selection.
bool isAlphaChannelEnabled() const
Returns true if the user is allowed to change the alpha component.
Definition kcolorbutton.cpp:119
void setAlphaChannelEnabled(bool alpha)
When set to true, allow the user to change the alpha component of the color.
Definition kcolorbutton.cpp:114
virtual void dragEnterEvent(QDragEnterEvent *)
Definition kcolorbutton.cpp:202
void setAlphaChannelEnabled(bool alpha)
When set to true, the user is allowed to change the alpha component of the color.
Definition kcolordialog.cpp:1376
void setDefaultColor(const QColor &defaultCol)
Call this to make the dialog show a "Default Color" checkbox.
Definition kcolordialog.cpp:1343
void setButtons(ButtonCodes buttonMask)
Creates (or recreates) the button box and all the buttons in it.
Definition kdialog.cpp:206
@ Ok
Show Ok button. (this button accept()s the dialog; result set to QDialog::Accepted)
Definition kdialog.h:141
@ Cancel
Show Cancel-button. (this button reject()s the dialog; result set to QDialog::Rejected)
Definition kdialog.h:144
static int dndEventDelay()
Returns a threshold in pixels for drag & drop operations.
Definition kglobalsettings.cpp:227
static void forceActiveWindow(WId win, long time=0)
Sets window win to be the active window.
Definition kwindowsystem_mac.cpp:366
QDrag * createDrag(const QColor &color, QWidget *dragsource)
Creates a color drag object.
Definition kcolormimedata.cpp:61
QColor fromMimeData(const QMimeData *mimeData)
Decodes the MIME data mimeData and returns the resulting color.
Definition kcolormimedata.cpp:50
bool canDecode(const QMimeData *mimeData)
Returns true if the MIME data mimeData contains a color object.
Definition kcolormimedata.cpp:36
void populateMimeData(QMimeData *mimeData, const QColor &color)
Sets the color and text representation fields for the specified color in the mimedata object: applica...
Definition kcolormimedata.cpp:29
void fillOpaqueRect(QPainter *painter, const QRect &rect, const QBrush &brush)
Definition kcolorhelpers.cpp:28
const KShortcut & paste()
Paste contents of clipboard at mouse/cursor position.
Definition kstandardshortcut.cpp:336
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Jul 18 2024 00:00:00 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Jul 18 2024 00:00:00 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.