refs #709, use load indicator for load overview

(indicating reloading)
This commit is contained in:
Klaus Basan
2016-07-18 01:38:50 +02:00
parent ff4097504c
commit 31921f34ef
5 changed files with 90 additions and 33 deletions

View File

@@ -531,22 +531,14 @@ namespace BlackGui
this->m_loadIndicator = new CLoadIndicator(64, 64, this);
}
this->centerLoadIndicator();
this->m_loadIndicator->startAnimation();
if (processEvents)
{
sGui->processEventsToRefreshGui();
}
this->m_loadIndicator->startAnimation(processEvents);
}
void CViewBaseNonTemplate::centerLoadIndicator()
{
if (!m_loadIndicator) { return; }
QPoint middle = this->viewport()->geometry().center();
int w = m_loadIndicator->width();
int h = m_loadIndicator->height();
int x = middle.x() - w / 2;
int y = middle.y() - h / 2;
this->m_loadIndicator->setGeometry(x, y, w, h);
const QPoint middle = this->viewport()->geometry().center();
this->m_loadIndicator->centerLoadIndicator(middle);
}
void CViewBaseNonTemplate::hideLoadIndicator()