mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 13:55:36 +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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CEnableForViewBasedIndicator::showLoadIndicator()
|
int CEnableForViewBasedIndicator::showLoadIndicator(int timeoutMs)
|
||||||
{
|
{
|
||||||
Q_ASSERT_X(m_viewWithIndicator, Q_FUNC_INFO, "Missing view to display indicator");
|
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()
|
void CEnableForViewBasedIndicator::hideLoadIndicator()
|
||||||
@@ -53,5 +54,4 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
this->m_viewWithIndicator = viewWithIndicator;
|
this->m_viewWithIndicator = viewWithIndicator;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ namespace BlackGui
|
|||||||
bool isShowingLoadIndicator() const;
|
bool isShowingLoadIndicator() const;
|
||||||
|
|
||||||
//! Show loading indicator
|
//! Show loading indicator
|
||||||
void showLoadIndicator();
|
int showLoadIndicator(int timeoutMs = -1);
|
||||||
|
|
||||||
//! Hide loading indicator
|
//! Hide loading indicator
|
||||||
void hideLoadIndicator();
|
void hideLoadIndicator();
|
||||||
|
|||||||
Reference in New Issue
Block a user