Pencil2D  ff90c0872e88be3bf81c548cd60f01983012ec49
Pencil2D is an animation software for both bitmap and vector graphics. It is free, multi-platform, and open source.
 All Classes Functions
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
ColorGridItem Class Reference
+ Inheritance diagram for ColorGridItem:

Public Slots

void setColor (const QColor &color)
 
void onColorPicked ()
 
void onColorDroped ()
 
void onColorCleared ()
 

Signals

void colorDroped (int)
 
void colorPicked (int, const QColor &)
 

Public Member Functions

 ColorGridItem (int id, QWidget *parent=0)
 
QColor color ()
 
virtual QSize sizeHint () const
 
virtual QSize minimumSizeHint () const
 

Protected Member Functions

void drawTransparent ()
 
void paintEvent (QPaintEvent *)
 
void enterEvent (QEvent *event)
 
void leaveEvent (QEvent *event)
 
void mousePressEvent (QMouseEvent *event)
 
void initMenu ()
 

Private Attributes

int mGridId
 
QMenu menu
 
QColor mColor
 
QPixmap mBackgroundImg
 
bool mHovered
 
QCursor picker
 

Detailed Description

Definition at line 22 of file colorgriditem.h.


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