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