mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
refs #855, support for timeout in CEnableForViewBasedIndicator
This commit is contained in:
committed by
Mathew Sutcliffe
parent
02cbd8e00d
commit
076fff417a
@@ -31,10 +31,11 @@ namespace BlackGui
|
||||
return false;
|
||||
}
|
||||
|
||||
void CEnableForViewBasedIndicator::showLoadIndicator()
|
||||
int CEnableForViewBasedIndicator::showLoadIndicator(int timeoutMs)
|
||||
{
|
||||
Q_ASSERT_X(m_viewWithIndicator, Q_FUNC_INFO, "Missing view to display indicator");
|
||||
if (m_viewWithIndicator) { m_viewWithIndicator->showLoadIndicator(); }
|
||||
if (m_viewWithIndicator) { return m_viewWithIndicator->showLoadIndicatorWithTimeout(timeoutMs); }
|
||||
return -1;
|
||||
}
|
||||
|
||||
void CEnableForViewBasedIndicator::hideLoadIndicator()
|
||||
@@ -53,5 +54,4 @@ namespace BlackGui
|
||||
{
|
||||
this->m_viewWithIndicator = viewWithIndicator;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace BlackGui
|
||||
bool isShowingLoadIndicator() const;
|
||||
|
||||
//! Show loading indicator
|
||||
void showLoadIndicator();
|
||||
int showLoadIndicator(int timeoutMs = -1);
|
||||
|
||||
//! Hide loading indicator
|
||||
void hideLoadIndicator();
|
||||
|
||||
Reference in New Issue
Block a user