ClickableIcon Class Reference

Signals

void clicked ()
 
void toggle (bool newState)
 

Public Member Functions

 ClickableIcon (const QImage &icon, const QSize &desiredPointSize)
 
void setAllowToggle (bool canToggle)
 
void setActive (bool state)
 
bool active () const
 
void setImage (const QImage &icon)
 

Protected Member Functions

void enterEvent (QEnterEvent *event) override
 
void leaveEvent (QEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 
void mousePressEvent (QMouseEvent *) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 

Constructor & Destructor Documentation

◆ ClickableIcon()

ClickableIcon::ClickableIcon ( const QImage &  icon,
const QSize &  desiredPointSize 
)

Member Function Documentation

◆ active()

bool ClickableIcon::active ( ) const
inline

◆ clicked

void ClickableIcon::clicked ( )
signal

◆ enterEvent()

void ClickableIcon::enterEvent ( QEnterEvent *  event)
overrideprotected

◆ leaveEvent()

void ClickableIcon::leaveEvent ( QEvent *  event)
overrideprotected

◆ mousePressEvent()

void ClickableIcon::mousePressEvent ( QMouseEvent *  )
inlineoverrideprotected

◆ mouseReleaseEvent()

void ClickableIcon::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

◆ paintEvent()

void ClickableIcon::paintEvent ( QPaintEvent *  event)
overrideprotected

◆ setActive()

void ClickableIcon::setActive ( bool  state)

◆ setAllowToggle()

void ClickableIcon::setAllowToggle ( bool  canToggle)

◆ setImage()

void ClickableIcon::setImage ( const QImage &  icon)

◆ toggle

void ClickableIcon::toggle ( bool  newState)
signal

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