#include <klfcolorchooser.h>
Public Slots | |
void | setColor (const QColor &col) |
void | activate () |
Signals | |
void | activated () |
void | colorActivated (const QColor &color) |
void | wantRemove () |
void | wantRemoveColor (const QColor &color) |
Public Member Functions | |
KLFColorClickSquare (QColor color=Qt::white, int size=16, bool removable=true, QWidget *parent=0) | |
virtual QSize | sizeHint () |
QColor | color () const |
Protected Member Functions | |
void | paintEvent (QPaintEvent *event) |
void | keyPressEvent (QKeyEvent *event) |
void | mousePressEvent (QMouseEvent *event) |
void | contextMenuEvent (QContextMenuEvent *event) |
Properties | |
QColor | color |
Definition at line 47 of file klfcolorchooser.h.
KLFColorClickSquare::KLFColorClickSquare | ( | QColor | color = Qt::white , |
int | size = 16 , |
||
bool | removable = true , |
||
QWidget * | parent = 0 |
||
) |
Definition at line 79 of file klfcolorchooser.cpp.
References QWidget::setFixedSize().
void KLFColorClickSquare::activate | ( | ) | [inline, slot] |
Definition at line 67 of file klfcolorchooser.h.
Referenced by keyPressEvent(), and mousePressEvent().
void KLFColorClickSquare::activated | ( | ) | [signal] |
QColor KLFColorClickSquare::color | ( | ) | const [inline] |
Definition at line 57 of file klfcolorchooser.h.
void KLFColorClickSquare::colorActivated | ( | const QColor & | color | ) | [signal] |
void KLFColorClickSquare::contextMenuEvent | ( | QContextMenuEvent * | event | ) | [protected] |
Reimplemented from QWidget.
Definition at line 108 of file klfcolorchooser.cpp.
References QMenu::addAction(), QContextMenuEvent::globalPos(), and QMenu::popup().
void KLFColorClickSquare::keyPressEvent | ( | QKeyEvent * | event | ) | [protected] |
Reimplemented from QWidget.
Definition at line 101 of file klfcolorchooser.cpp.
References activate(), and QKeyEvent::key().
void KLFColorClickSquare::mousePressEvent | ( | QMouseEvent * | event | ) | [protected] |
Reimplemented from QWidget.
Definition at line 97 of file klfcolorchooser.cpp.
References activate().
void KLFColorClickSquare::paintEvent | ( | QPaintEvent * | event | ) | [protected] |
Reimplemented from QWidget.
Definition at line 86 of file klfcolorchooser.cpp.
References QStyleOptionFocusRect::backgroundColor(), and QStylePainter::drawPrimitive().
void KLFColorClickSquare::setColor | ( | const QColor & | col | ) | [inline, slot] |
Definition at line 66 of file klfcolorchooser.h.
virtual QSize KLFColorClickSquare::sizeHint | ( | ) | [inline, virtual] |
Definition at line 55 of file klfcolorchooser.h.
void KLFColorClickSquare::wantRemove | ( | ) | [signal] |
void KLFColorClickSquare::wantRemoveColor | ( | const QColor & | color | ) | [signal] |
QColor KLFColorClickSquare::color [read, write] |
Definition at line 51 of file klfcolorchooser.h.