org.kde.koala

Class KColorButton

public class KColorButton extends QPushButton

This widget can be used to display or allow user selection of a color. \image html kcolorbutton.png "KDE Color Button" See KColorButtonSignals for signals emitted by KColorButton

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 voidchooseColor()
StringclassName()
QColorcolor()
Returns the currently chosen color.
QColordefaultColor()
Returns the default color or an invalid color if no default color is set.
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voiddragEnterEvent(QDragEnterEvent arg1)
protected voiddrawButtonLabel(QPainter p)
protected voiddropEvent(QDropEvent arg1)
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
protected voidkeyPressEvent(QKeyEvent e)
QMetaObjectmetaObject()
protected voidmouseMoveEvent(QMouseEvent e)
protected voidmousePressEvent(QMouseEvent e)
voidsetColor(QColor c)
Sets the current color to c.
voidsetDefaultColor(QColor c)
Sets the default color to c.
QSizesizeHint()

Constructor Detail

KColorButton

protected KColorButton(Class dummy)

KColorButton

public KColorButton(QWidget parent, String name)
Creates a color button.

UNKNOWN: Creates a color button.

KColorButton

public KColorButton(QWidget parent)

KColorButton

public KColorButton(QColor c, QWidget parent, String name)
Creates a color button with an initial color c.

UNKNOWN: Creates a color button with an initial color c.

KColorButton

public KColorButton(QColor c, QWidget parent)

KColorButton

public KColorButton(QColor c, QColor defaultColor, QWidget parent, String name)

KColorButton

public KColorButton(QColor c, QColor defaultColor, QWidget parent)

Method Detail

chooseColor

protected void chooseColor()

className

public String className()

color

public QColor color()
Returns the currently chosen color.

UNKNOWN: Returns the currently chosen color.

defaultColor

public QColor defaultColor()
Returns the default color or an invalid color if no default color is set.

UNKNOWN: Returns the default color or an invalid color if no default color is set.

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

dragEnterEvent

protected void dragEnterEvent(QDragEnterEvent arg1)

drawButtonLabel

protected void drawButtonLabel(QPainter p)

dropEvent

protected void dropEvent(QDropEvent arg1)

finalize

protected void finalize()
Deletes the wrapped C++ instance

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

keyPressEvent

protected void keyPressEvent(QKeyEvent e)

metaObject

public QMetaObject metaObject()

mouseMoveEvent

protected void mouseMoveEvent(QMouseEvent e)

mousePressEvent

protected void mousePressEvent(QMouseEvent e)

setColor

public void setColor(QColor c)
Sets the current color to c.

UNKNOWN: Sets the current color to c.

setDefaultColor

public void setDefaultColor(QColor c)
Sets the default color to c.

UNKNOWN: Sets the default color to c.

sizeHint

public QSize sizeHint()