org.kde.koala
public class KColorButton extends QPushButton
See Also: KColorDialog
UNKNOWN: A pushbutton to display or allow user selection of a color.
| Constructor Summary | |
|---|---|
| protected | KColorButton(Class dummy) |
| KColorButton(QWidget parent, String name)
Creates a color button. | |
| KColorButton(QWidget parent) | |
| KColorButton(QColor c, QWidget parent, String name)
Creates a color button with an initial color c. | |
| KColorButton(QColor c, QWidget parent) | |
| KColorButton(QColor c, QColor defaultColor, QWidget parent, String name) | |
| KColorButton(QColor c, QColor defaultColor, QWidget parent) | |
| Method Summary | |
|---|---|
| protected void | chooseColor() |
| String | className() |
| QColor | color()
Returns the currently chosen color. |
| QColor | defaultColor()
Returns the default color or an invalid color
if no default color is set. |
| void | dispose() Delete the wrapped C++ instance ahead of finalize() |
| protected void | dragEnterEvent(QDragEnterEvent arg1) |
| protected void | drawButtonLabel(QPainter p) |
| protected void | dropEvent(QDropEvent arg1) |
| protected void | finalize() Deletes the wrapped C++ instance |
| boolean | isDisposed() Has the wrapped C++ instance been deleted? |
| protected void | keyPressEvent(QKeyEvent e) |
| QMetaObject | metaObject() |
| protected void | mouseMoveEvent(QMouseEvent e) |
| protected void | mousePressEvent(QMouseEvent e) |
| void | setColor(QColor c)
Sets the current color to c. |
| void | setDefaultColor(QColor c)
Sets the default color to c. |
| QSize | sizeHint() |
UNKNOWN: Creates a color button.
c.UNKNOWN: Creates a color button with an initial color c.
UNKNOWN: Returns the currently chosen color.
UNKNOWN: Returns the default color or an invalid color if no default color is set.
c.UNKNOWN: Sets the current color to c.
c.UNKNOWN: Sets the default color to c.