class KColorButton
|
A pushbutton to display or allow user selection of a colour.
More... |
|
|
Public Methods
Signals
- void changed ( const QColor &newColor )
Protected Methods
- virtual void drawButtonLabel ( QPainter *p )
- virtual void dragEnterEvent ( QDragEnterEvent *)
- virtual void dropEvent ( QDropEvent *)
- virtual void mousePressEvent ( QMouseEvent *e )
- virtual void mouseMoveEvent ( QMouseEvent *e)
- virtual void mouseReleaseEvent ( QMouseEvent *e )
Detailed Description
This widget can be used to display or allow user selection of a colour.
KColorButton ( QWidget *parent, const char *name = 0L )
|
Constructor. Create a KColorButton.
KColorButton ( const QColor &c, QWidget *parent, const char *name = 0L )
|
Constructor. Create a KColorButton.
Parameters:
c | The initial colour of the button.
|
[virtual]
Destructor.
[const]
The current colour.
Returns: The current colour.
void setColor ( const QColor &c )
|
Set the current colour.
Parameters:
void changed ( const QColor &newColor )
|
[signal]
This signal will be emitted when the colour of the widget
is changed, either with setColor or via user selection.
[protected virtual]
[protected virtual]
For XDnd
- Version: $Id: kcolorbtn.h,v 1.9 1999/07/26 18:40:51 pbrown Exp $
- Generated: root@tantive.terraplex.com on Sun Feb 27 17:39:25 2000, using kdoc 2.0a33.