SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Signals | Public Member Functions | Protected Member Functions | List of all members
ClickableLabel Class Reference

#include <clickablelabel.h>

Inherits QLabel.

Signals

void clicked ()
 

Public Member Functions

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

Protected Member Functions

void mousePressEvent (QMouseEvent *event)
 

Detailed Description

Definition at line 27 of file clickablelabel.h.

Constructor & Destructor Documentation

◆ ClickableLabel() [1/3]

ClickableLabel::ClickableLabel ( )
explicit

Definition at line 21 of file clickablelabel.cpp.

22  : QLabel(nullptr)
23 {
24  setText("");
25 }

◆ ClickableLabel() [2/3]

ClickableLabel::ClickableLabel ( QWidget *  parent)
explicit

Definition at line 27 of file clickablelabel.cpp.

28  : QLabel(parent)
29 {
30  setText("");
31 }

◆ ClickableLabel() [3/3]

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

Definition at line 33 of file clickablelabel.cpp.

34  : QLabel(parent)
35 {
36  setText(text);
37 }

◆ ~ClickableLabel()

ClickableLabel::~ClickableLabel ( )

Definition at line 39 of file clickablelabel.cpp.

40 {
41 }

Member Function Documentation

◆ clicked

void ClickableLabel::clicked ( )
signal

Referenced by mousePressEvent().

+ Here is the caller graph for this function:

◆ mousePressEvent()

void ClickableLabel::mousePressEvent ( QMouseEvent *  event)
protected

Definition at line 43 of file clickablelabel.cpp.

References clicked().

44 {
45  (void) event;
46  emit clicked();
47 }

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