BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The OverlayLabelWidget is a semi-transparent overlay label to place on top of other widgets outside of any layout context.
Definition at line 25 of file OverlayLabelWidget.h.
Public Member Functions | |
OverlayLabelWidget (QWidget *parent=nullptr) | |
void | setPosition (int x, int y) |
void | setRectangle (const QRect &rect) |
void | setText (const QString &text) |
Protected Member Functions | |
void | paintEvent (QPaintEvent *event) override |
Private Attributes | |
QRect | m_bounding_rect |
QString | m_text |
OverlayLabelWidget::OverlayLabelWidget | ( | QWidget * | parent = nullptr | ) |
Definition at line 22 of file OverlayLabelWidget.cpp.
|
overrideprotected |
Definition at line 39 of file OverlayLabelWidget.cpp.
References DesignerHelper::getSectionFontSize(), m_bounding_rect, m_text, and GUI::Util::Style::SizeOfLetterM().
void OverlayLabelWidget::setPosition | ( | int | x, |
int | y | ||
) |
Definition at line 34 of file OverlayLabelWidget.cpp.
References m_bounding_rect.
Referenced by OverlayLabelController::updateLabelGeometry().
void OverlayLabelWidget::setRectangle | ( | const QRect & | rect | ) |
Definition at line 29 of file OverlayLabelWidget.cpp.
References m_bounding_rect.
Referenced by OverlayLabelController::updateLabelGeometry().
|
inline |
Definition at line 33 of file OverlayLabelWidget.h.
References m_text.
Referenced by OverlayLabelController::setShown().
|
private |
Definition at line 40 of file OverlayLabelWidget.h.
Referenced by paintEvent(), setPosition(), and setRectangle().
|
private |
Definition at line 39 of file OverlayLabelWidget.h.
Referenced by paintEvent(), and setText().