|
swift
|
Enable widget class for load indicator. More...
#include <loadindicator.h>
Public Member Functions | |
| CLoadIndicatorEnabled (QWidget *usingWidget) | |
| Ctor. | |
| virtual | ~CLoadIndicatorEnabled ()=default |
| Destructor. | |
| CLoadIndicatorEnabled (const CLoadIndicatorEnabled &)=delete | |
| Copy constructor. | |
| CLoadIndicatorEnabled & | operator= (const CLoadIndicatorEnabled &)=delete |
| Copy assignment operator. | |
| bool | isShowingLoadIndicator () const |
| Showing load indicator? | |
| void | showLoading (std::chrono::milliseconds timeout=std::chrono::milliseconds(0), bool processEvents=true) |
| Show load indicator. | |
| void | hideLoading () |
| Hide load indicator. | |
| bool | isLoadInProgress () const |
| Loading in progress? | |
Protected Member Functions | |
| void | centerLoadIndicator () |
| Center load indicator. | |
| virtual void | indicatorTimedOut () |
| Indicator timed out. | |
Protected Attributes | |
| QWidget * | m_usingWidget = nullptr |
| widget which uses load indicator | |
| CLoadIndicator * | m_loadIndicator = nullptr |
| indicator itself | |
| bool | m_loadInProgress = false |
| flag indicating loading | |
| int | m_indicatorId = -1 |
| last indicator id returned | |
Enable widget class for load indicator.
Definition at line 120 of file loadindicator.h.
| swift::gui::CLoadIndicatorEnabled::CLoadIndicatorEnabled | ( | QWidget * | usingWidget | ) |
Ctor.
Definition at line 200 of file loadindicator.cpp.
|
protected |
Center load indicator.
Definition at line 232 of file loadindicator.cpp.
| void swift::gui::CLoadIndicatorEnabled::hideLoading | ( | ) |
Hide load indicator.
Definition at line 224 of file loadindicator.cpp.
|
protectedvirtual |
| bool swift::gui::CLoadIndicatorEnabled::isLoadInProgress | ( | ) | const |
Loading in progress?
Definition at line 210 of file loadindicator.cpp.
| bool swift::gui::CLoadIndicatorEnabled::isShowingLoadIndicator | ( | ) | const |
Showing load indicator?
Definition at line 205 of file loadindicator.cpp.
| void swift::gui::CLoadIndicatorEnabled::showLoading | ( | std::chrono::milliseconds | timeout = std::chrono::milliseconds(0), |
| bool | processEvents = true ) |
Show load indicator.
Definition at line 212 of file loadindicator.cpp.
|
protected |
last indicator id returned
Definition at line 158 of file loadindicator.h.
|
protected |
indicator itself
Definition at line 156 of file loadindicator.h.
|
protected |
flag indicating loading
Definition at line 157 of file loadindicator.h.
|
protected |
widget which uses load indicator
Definition at line 155 of file loadindicator.h.