digiKam
Digikam::DClickLabel Class Reference
+ Inheritance diagram for Digikam::DClickLabel:

Signals

void activated ()
 Emitted when activated, by mouse or key press. More...
 
void leftClicked ()
 Emitted when activated by left mouse click. More...
 

Public Member Functions

 DClickLabel (const QString &text, QWidget *const parent=nullptr)
 
 DClickLabel (QWidget *const parent=nullptr)
 
 ~DClickLabel () override
 

Protected Member Functions

void keyPressEvent (QKeyEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 

Constructor & Destructor Documentation

◆ DClickLabel() [1/2]

Digikam::DClickLabel::DClickLabel ( QWidget *const  parent = nullptr)
explicit

◆ DClickLabel() [2/2]

Digikam::DClickLabel::DClickLabel ( const QString &  text,
QWidget *const  parent = nullptr 
)
explicit

◆ ~DClickLabel()

Digikam::DClickLabel::~DClickLabel ( )
override

Member Function Documentation

◆ activated

void Digikam::DClickLabel::activated ( )
signal

Emitted when activated, by mouse or key press.

Referenced by Digikam::DLabelExpander::DLabelExpander(), keyPressEvent(), and mouseReleaseEvent().

◆ keyPressEvent()

void Digikam::DClickLabel::keyPressEvent ( QKeyEvent *  event)
overrideprotected

References activated().

◆ leftClicked

void Digikam::DClickLabel::leftClicked ( )
signal

Emitted when activated by left mouse click.

Referenced by mouseReleaseEvent().

◆ mousePressEvent()

void Digikam::DClickLabel::mousePressEvent ( QMouseEvent *  event)
overrideprotected

◆ mouseReleaseEvent()

void Digikam::DClickLabel::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

References activated(), and leftClicked().


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