BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The FancyLabel class is a QLabel-like class with trivial animation when text slowly appears on the screen from left to right, pretending to be typed. More...
Public Member Functions | |
FancyLabel (const QString &text, QWidget *parent=nullptr) | |
FancyLabel (QWidget *parent=nullptr) | |
void | setTextAnimated (const QString &animated_text) |
Private Slots | |
void | onTimeout () |
Private Member Functions | |
void | init_fancy_label () |
Private Attributes | |
int | m_current_index {0} |
QString | m_text |
QTimer * | m_timer {nullptr} |
int | m_total_effect_duration {0} |
The FancyLabel class is a QLabel-like class with trivial animation when text slowly appears on the screen from left to right, pretending to be typed.
Definition at line 23 of file FancyLabel.h.
FancyLabel::FancyLabel | ( | const QString & | text, |
QWidget * | parent = nullptr |
||
) |
Definition at line 18 of file FancyLabel.cpp.
References init_fancy_label().
FancyLabel::FancyLabel | ( | QWidget * | parent = nullptr | ) |
Definition at line 23 of file FancyLabel.cpp.
References init_fancy_label().
|
private |
Definition at line 59 of file FancyLabel.cpp.
References m_current_index, m_timer, m_total_effect_duration, and onTimeout().
Referenced by FancyLabel().
|
privateslot |
Definition at line 49 of file FancyLabel.cpp.
References m_current_index, m_text, and m_timer.
Referenced by init_fancy_label().
void FancyLabel::setTextAnimated | ( | const QString & | animated_text | ) |
Definition at line 28 of file FancyLabel.cpp.
References m_current_index, m_text, m_timer, and m_total_effect_duration.
Referenced by WelcomeView::setCurrentProjectName().
|
private |
Definition at line 41 of file FancyLabel.h.
Referenced by init_fancy_label(), onTimeout(), and setTextAnimated().
|
private |
Definition at line 38 of file FancyLabel.h.
Referenced by onTimeout(), and setTextAnimated().
|
private |
Definition at line 39 of file FancyLabel.h.
Referenced by init_fancy_label(), onTimeout(), and setTextAnimated().
|
private |
Definition at line 40 of file FancyLabel.h.
Referenced by init_fancy_label(), and setTextAnimated().