BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The OverlayLabelController class controlls appearance of InfoLabelWidget (position, show/hide) on top of some scroll area.
Definition at line 27 of file OverlayLabelController.h.
Public Member Functions | |
OverlayLabelController (QObject *parent=nullptr) | |
void | setArea (QAbstractScrollArea *area) |
void | setShown (bool shown) |
Shows/removes a label from the controlled widget. More... | |
void | setText (const QString &text) |
Protected Member Functions | |
bool | eventFilter (QObject *obj, QEvent *event) override |
Private Member Functions | |
void | updateLabelGeometry () |
Private Attributes | |
QAbstractScrollArea * | m_area |
OverlayLabelWidget * | m_label |
QString | m_text |
OverlayLabelController::OverlayLabelController | ( | QObject * | parent = nullptr | ) |
Definition at line 22 of file OverlayLabelController.cpp.
|
overrideprotected |
Definition at line 58 of file OverlayLabelController.cpp.
References updateLabelGeometry().
void OverlayLabelController::setArea | ( | QAbstractScrollArea * | area | ) |
Definition at line 34 of file OverlayLabelController.cpp.
References m_area.
Referenced by FitParameterWidget::FitParameterWidget().
void OverlayLabelController::setShown | ( | bool | shown | ) |
Shows/removes a label from the controlled widget.
Definition at line 42 of file OverlayLabelController.cpp.
References m_area, m_label, m_text, OverlayLabelWidget::setText(), and updateLabelGeometry().
Referenced by FitParameterWidget::updateInfoLabel().
void OverlayLabelController::setText | ( | const QString & | text | ) |
Definition at line 29 of file OverlayLabelController.cpp.
References m_text.
Referenced by FitParameterWidget::FitParameterWidget().
|
private |
Definition at line 66 of file OverlayLabelController.cpp.
References m_area, m_label, OverlayLabelWidget::setPosition(), and OverlayLabelWidget::setRectangle().
Referenced by eventFilter(), and setShown().
|
private |
Definition at line 45 of file OverlayLabelController.h.
Referenced by setArea(), setShown(), and updateLabelGeometry().
|
private |
Definition at line 44 of file OverlayLabelController.h.
Referenced by setShown(), and updateLabelGeometry().
|
private |
Definition at line 46 of file OverlayLabelController.h.
Referenced by setShown(), and setText().