Mantid
|
A small extension to QLabel, so that it emits a signal when clicked. More...
#include <PropertyWidget.h>
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... | |
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.
MantidQt::API::ClickableLabel::ClickableLabel | ( | QWidget * | parent | ) |
Constructor.
parent | :: the parent of this label. |
Definition at line 162 of file PropertyWidget.cpp.
|
overridedefault |
Destructor.
|
signal |
Signal emitted when a user clicks the label.
Referenced by mousePressEvent().
|
overrideprotected |
Catches the mouse press event and emits the signal.
event | :: the QMouseEvent generated by a user clicking the label. |
Definition at line 173 of file PropertyWidget.cpp.
References clicked(), and UNUSED_ARG.