Mantid
Loading...
Searching...
No Matches
Signals | Public Member Functions | Protected Member Functions | List of all members
MantidQt::API::ClickableLabel Class Reference

A small extension to QLabel, so that it emits a signal when clicked. More...

#include <PropertyWidget.h>

Inheritance diagram for MantidQt::API::ClickableLabel:

Signals

void clicked ()
 Signal emitted when a user clicks the label. More...
 

Public Member Functions

 ClickableLabel (QWidget *parent)
 Constructor. More...
 
 ~ClickableLabel () override
 Destructor. More...
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event) override
 Catches the mouse press event and emits the signal. More...
 

Detailed Description

A small extension to QLabel, so that it emits a signal when clicked.

Used for the information "icons" in PropertyWidget.

Definition at line 29 of file PropertyWidget.h.

Constructor & Destructor Documentation

◆ ClickableLabel()

MantidQt::API::ClickableLabel::ClickableLabel ( QWidget *  parent)

Constructor.

Parameters
parent:: the parent of this label.

Definition at line 162 of file PropertyWidget.cpp.

◆ ~ClickableLabel()

MantidQt::API::ClickableLabel::~ClickableLabel ( )
overridedefault

Destructor.

Member Function Documentation

◆ clicked

void MantidQt::API::ClickableLabel::clicked ( )
signal

Signal emitted when a user clicks the label.

Referenced by mousePressEvent().

◆ mousePressEvent()

void MantidQt::API::ClickableLabel::mousePressEvent ( QMouseEvent *  event)
overrideprotected

Catches the mouse press event and emits the signal.

Parameters
event:: the QMouseEvent generated by a user clicking the label.

Definition at line 173 of file PropertyWidget.cpp.

References clicked(), and UNUSED_ARG.


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