#include <kcolordialog.h>
Inheritance diagram for KColorDialog:

Public Slots | |
| void | setColor (const QColor &col) |
Signals | |
| void | colorSelected (const QColor &col) |
Public Methods | |
| KColorDialog (QWidget *parent=0L, const char *name=0L, bool modal=FALSE) | |
| ~KColorDialog () | |
| QColor | color () const |
| void | setDefaultColor (const QColor &defaultCol) |
| QColor | defaultColor () const |
Static Public Methods | |
| int | getColor (QColor &theColor, QWidget *parent=0L) |
| int | getColor (QColor &theColor, const QColor &defaultColor, QWidget *parent=0L) |
| QColor | grabColor (const QPoint &p) |
Protected Methods | |
| virtual void | mouseReleaseEvent (QMouseEvent *) |
| virtual void | keyPressEvent (QKeyEvent *) |
| virtual void | virtual_hook (int id, void *data) |
The KColorDialog provides a dialog for color selection.
@sect Features:
Example:
QColor myColor;
int result = KColorDialog::getColor( myColor );
if ( result == KColorDialog::Accepted )
...
KDE Color Dialog
On the right side of the dialog you see a KPaletteTable showing up to 40 colors with a combo box which offers several predefined palettes or a palette configured by the user. The small field showing the currently selected color is a KColorPatch.
Definition at line 405 of file kcolordialog.h.
|
||||||||||||||||
|
Constructs a color selection dialog. |
|
|
Destroys the color selection dialog. |
|
|
Returns the currently selected color. |
|
|
Emitted when a color is selected. Connect to this to monitor the color as it as selected if you are not running modal. |
|
|
|
|
||||||||||||||||
|
Creates a modal color dialog, lets the user choose a color, and returns when the dialog is closed.
The selected color is returned in the argument
This version takes a
|
|
||||||||||||
|
Creates a modal color dialog, let the user choose a color, and returns when the dialog is closed.
The selected color is returned in the argument
|
|
|
Gets the color from the pixel at point p on the screen. |
|
|
@reimplemented Reimplemented from KDialogBase. |
|
|
@reimplemented |
|
|
Preselects a color. |
|
|
Call this to make the dialog show a "Default Color" checkbox. If this checkbox is selected, the dialog will return an "invalid" color (QColor()). This can be used to mean "the default text color", for instance, the one with the KDE text color on screen, but black when printing. |
1.2.18