Some tweaks.

This commit is contained in:
Martin Rotter 2014-09-11 22:28:14 +02:00
parent 9a98b479b1
commit 36ed580f4d

View File

@ -149,17 +149,13 @@ void WebBrowser::initializeLayout() {
} }
void WebBrowser::onLoadingStarted() { void WebBrowser::onLoadingStarted() {
// TODO: Do not display this when navigating to "about:blank".
m_loadingProgress->setValue(0); m_loadingProgress->setValue(0);
m_loadingProgress->show(); m_loadingProgress->show();
} }
void WebBrowser::onLoadingProgress(int progress) { void WebBrowser::onLoadingProgress(int progress) {
m_loadingProgress->setValue(progress); m_loadingProgress->setValue(progress);
m_lblProgress->setText(QString(" %1 kB / %2 kB").arg(m_webView->page()->bytesReceived() / 1000).arg(m_webView->page()->totalBytes() / 1000));
m_lblProgress->setText(QString(" %1 kB / %2 kB").
arg(m_webView->page()->bytesReceived() / 1000).
arg(m_webView->page()->totalBytes() / 1000));
} }
void WebBrowser::onLoadingFinished(bool success) { void WebBrowser::onLoadingFinished(bool success) {