KDEUI
Go to the documentation of this file.
20 #ifndef KCOLORBUTTON_H
21 #define KCOLORBUTTON_H
25 #include <QtGui/QPushButton>
27 class KColorButtonPrivate;
40 Q_PROPERTY(
QColor color READ color WRITE setColor NOTIFY changed USER
true )
41 Q_PROPERTY(
QColor defaultColor READ defaultColor WRITE setDefaultColor )
42 Q_PROPERTY(
bool alphaChannelEnabled READ isAlphaChannelEnabled WRITE setAlphaChannelEnabled )
70 void setColor( const
QColor &c );
77 void setAlphaChannelEnabled(
bool alpha );
83 bool isAlphaChannelEnabled() const;
89 QColor defaultColor() const;
94 void setDefaultColor( const
QColor &c );
96 QSize sizeHint() const;
97 QSize minimumSizeHint() const;
104 void changed( const
QColor &newColor );
107 virtual
void paintEvent( QPaintEvent *pe );
108 virtual
void dragEnterEvent( QDragEnterEvent *);
109 virtual
void dropEvent( QDropEvent *);
110 virtual
void mousePressEvent( QMouseEvent *e );
111 virtual
void mouseMoveEvent( QMouseEvent *e);
112 virtual
void keyPressEvent( QKeyEvent *e );
115 class KColorButtonPrivate;
116 KColorButtonPrivate * const d;
118 Q_PRIVATE_SLOT( d,
void _k_chooseColor() )
119 Q_PRIVATE_SLOT( d,
void _k_colorChosen() )
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:14 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.