BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Shows a single line of text on a white background. More...
Public Member Functions | |
StatusLabel (QWidget *parent=nullptr) | |
void | setAlignment (Qt::Alignment) |
void | setFont (const QFont &font) |
void | setPointSize (int pointSize) |
void | setText (const QString &text) |
Protected Member Functions | |
void | paintEvent (QPaintEvent *event) |
Private Attributes | |
Qt::Alignment | m_alignment |
QFont | m_font |
QString | m_text |
Shows a single line of text on a white background.
Opposite to QLabel, doesn't trigger layout resize, being happy with place it has. If text string is too long for current size, it will be clipped.
Definition at line 29 of file statuslabel.h.
|
explicit |
Definition at line 24 of file statuslabel.cpp.
References ModelView::Style::DefaultInfoBarHeight().
|
protected |
Definition at line 55 of file statuslabel.cpp.
References m_alignment, m_font, m_text, and ModelView::Utils::WidthOfLetterM().
void StatusLabel::setAlignment | ( | Qt::Alignment | alignment | ) |
Definition at line 49 of file statuslabel.cpp.
References m_alignment.
void StatusLabel::setFont | ( | const QFont & | font | ) |
Definition at line 37 of file statuslabel.cpp.
References m_font.
void StatusLabel::setPointSize | ( | int | pointSize | ) |
Definition at line 43 of file statuslabel.cpp.
References m_font.
void StatusLabel::setText | ( | const QString & | text | ) |
Definition at line 31 of file statuslabel.cpp.
References m_text.
Referenced by ModelView::GraphCanvas::GraphCanvasImpl::GraphCanvasImpl().
|
private |
Definition at line 45 of file statuslabel.h.
Referenced by paintEvent(), and setAlignment().
|
private |
Definition at line 46 of file statuslabel.h.
Referenced by paintEvent(), setFont(), and setPointSize().
|
private |
Definition at line 44 of file statuslabel.h.
Referenced by paintEvent(), and setText().