|
BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Small on WelcomeView for notofications about updates. More...
Public Member Functions | |
| UpdateNotifierWidget (UpdateNotifier *updateNotifier, QWidget *parent=nullptr) | |
Protected Member Functions | |
| void | showEvent (QShowEvent *event) |
| Schedule check for updates if it was not done yet. More... | |
Private Slots | |
| void | onLinkActivated (const QString &text) |
| Processes mouse click on update notification label. More... | |
| void | onUpdateNotification (const QString &text) |
| Updates label when notification is coming. More... | |
Private Attributes | |
| bool | m_check_for_updates |
| QLabel * | m_updateLabel |
| UpdateNotifier * | m_updateNotifier |
Small on WelcomeView for notofications about updates.
Definition at line 26 of file UpdateNotifierWidget.h.
|
explicit |
Definition at line 39 of file UpdateNotifierWidget.cpp.
References UpdateNotifier::hasDefinedUpdatesFlag(), m_updateLabel, m_updateNotifier, onLinkActivated(), UpdateNotifier::onUpdateNotification(), and onUpdateNotification().
|
privateslot |
Processes mouse click on update notification label.
Definition at line 88 of file UpdateNotifierWidget.cpp.
References UpdateNotifier::checkForUpdates(), m_updateLabel, m_updateNotifier, and UpdateNotifier::setCheckUpdatesFlag().
Referenced by UpdateNotifierWidget().
|
privateslot |
Updates label when notification is coming.
Definition at line 81 of file UpdateNotifierWidget.cpp.
References m_updateLabel.
Referenced by UpdateNotifierWidget().
|
protected |
Schedule check for updates if it was not done yet.
Definition at line 70 of file UpdateNotifierWidget.cpp.
References UpdateNotifier::checkForUpdates(), m_check_for_updates, and m_updateNotifier.
|
private |
Definition at line 41 of file UpdateNotifierWidget.h.
Referenced by showEvent().
|
private |
Definition at line 40 of file UpdateNotifierWidget.h.
Referenced by UpdateNotifierWidget(), onLinkActivated(), and onUpdateNotification().
|
private |
Definition at line 39 of file UpdateNotifierWidget.h.
Referenced by UpdateNotifierWidget(), onLinkActivated(), and showEvent().