[KLF Application][KLF Tools][KLF Backend][KLF Home]
KLatexFormula Project
Public Slots | Signals | Public Member Functions | Protected Member Functions | Properties

KLFColorClickSquare Class Reference

#include <klfcolorchooser.h>

Inheritance diagram for KLFColorClickSquare:
Inheritance graph
[legend]
Collaboration diagram for KLFColorClickSquare:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Definition at line 47 of file klfcolorchooser.h.


Constructor & Destructor Documentation

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().


Member Function Documentation

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]

Property Documentation

QColor KLFColorClickSquare::color [read, write]

Definition at line 51 of file klfcolorchooser.h.


The documentation for this class was generated from the following files:

Generated by doxygen 1.7.3