BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The CautionSignWidget is an transparent widget with caution sign pixmap intended to be overlayed onto other widget at some arbitrary position.
Definition at line 24 of file CautionSignWidget.h.
Public Member Functions | |
CautionSignWidget (QWidget *parent=nullptr) | |
void | setCautionHeader (const QString &message) |
void | setCautionMessage (const QString &message) |
void | setPosition (int x, int y) |
set geometry of widget around center point More... | |
Protected Member Functions | |
void | mousePressEvent (QMouseEvent *event) override |
void | paintEvent (QPaintEvent *event) override |
Private Attributes | |
QString | m_caution_header |
QString | m_caution_message |
QPixmap | m_pixmap |
CautionSignWidget::CautionSignWidget | ( | QWidget * | parent = nullptr | ) |
|
overrideprotected |
Definition at line 37 of file CautionSignWidget.cpp.
References m_caution_header, and m_caution_message.
|
overrideprotected |
void CautionSignWidget::setCautionHeader | ( | const QString & | message | ) |
|
inline |
Definition at line 31 of file CautionSignWidget.h.
References m_caution_message.
Referenced by CautionSign::setCautionMessage().
void CautionSignWidget::setPosition | ( | int | x, |
int | y | ||
) |
set geometry of widget around center point
Definition at line 49 of file CautionSignWidget.cpp.
References m_pixmap.
Referenced by CautionSign::updateLabelGeometry().
|
private |
Definition at line 39 of file CautionSignWidget.h.
Referenced by CautionSignWidget(), mousePressEvent(), and setCautionHeader().
|
private |
Definition at line 40 of file CautionSignWidget.h.
Referenced by mousePressEvent(), and setCautionMessage().
|
private |
Definition at line 38 of file CautionSignWidget.h.
Referenced by paintEvent(), and setPosition().