refs #855, support for timeout in CEnableForViewBasedIndicator

This commit is contained in:
Klaus Basan
2017-01-07 02:58:41 +01:00
committed by Mathew Sutcliffe
parent 02cbd8e00d
commit 076fff417a
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -28,7 +28,7 @@ namespace BlackGui
bool isShowingLoadIndicator() const;
//! Show loading indicator
void showLoadIndicator();
int showLoadIndicator(int timeoutMs = -1);
//! Hide loading indicator
void hideLoadIndicator();