BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Horizontal collapsible bar, part of CollapsibleListWidget. More...
Public Member Functions | |
CollapsibleBar (QWidget *parent=nullptr) | |
void | setWidget (QWidget *widget, const QString &title) |
Protected Member Functions | |
void | mousePressEvent (QMouseEvent *event) override |
Private Member Functions | |
bool | eventFilter (QObject *obj, QEvent *event) override |
Listens for widget signals and update collapse/expand icon on visibility change. More... | |
void | updatePixmap () |
Set pixmap depending from the visibility of the widget. More... | |
Private Attributes | |
QWidget * | m_controlledWidget {nullptr} |
QLabel * | m_pixmapLabel {nullptr} |
QLabel * | m_titleLabel {nullptr} |
Horizontal collapsible bar, part of CollapsibleListWidget.
Intended for placement into the QSplitter, makes client widget visible/invisible on clicks.
Definition at line 29 of file collapsiblebar.h.
CollapsibleBar::CollapsibleBar | ( | QWidget * | parent = nullptr | ) |
Definition at line 25 of file collapsiblebar.cpp.
References ModelView::Utils::HeightOfLetterM(), m_pixmapLabel, and m_titleLabel.
|
overrideprivate |
Listens for widget signals and update collapse/expand icon on visibility change.
Definition at line 57 of file collapsiblebar.cpp.
References m_controlledWidget, and updatePixmap().
|
overrideprotected |
Definition at line 48 of file collapsiblebar.cpp.
References m_controlledWidget, and updatePixmap().
void CollapsibleBar::setWidget | ( | QWidget * | widget, |
const QString & | title | ||
) |
Definition at line 40 of file collapsiblebar.cpp.
References m_controlledWidget, m_titleLabel, and updatePixmap().
|
private |
Set pixmap depending from the visibility of the widget.
Definition at line 67 of file collapsiblebar.cpp.
References m_controlledWidget, and m_pixmapLabel.
Referenced by eventFilter(), mousePressEvent(), and setWidget().
|
private |
Definition at line 44 of file collapsiblebar.h.
Referenced by eventFilter(), mousePressEvent(), setWidget(), and updatePixmap().
|
private |
Definition at line 45 of file collapsiblebar.h.
Referenced by CollapsibleBar(), and updatePixmap().
|
private |
Definition at line 46 of file collapsiblebar.h.
Referenced by CollapsibleBar(), and setWidget().