KDEUI
Go to the documentation of this file.
25#include <QtGui/QPushButton>
27class 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-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.