class KColorDialog |
|
|
Constructs a 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. |
|
Returns the value passed to setDefaultColor |
|
|
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 theColor. theColor - if valid, specifies the color to be initially selected. On return, holds the selected color. Returns QDialog.result(). |
|
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 theColor. This version takes a defaultColor argument, which sets the color selected by the "default color" checkbox. When this checkbox is checked, the invalid color (QColor()) is returned into theColor. theColor - if valid, specifies the color to be initially selected. On return, holds the selected color. defaultColor - color selected by the "default color" checkbox Returns QDialog.result(). |
|
Gets the color from the pixel at point p on the screen. |
|
|
|
|
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. |