mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-10 15:22:30 +01:00
Some tweaks.
This commit is contained in:
parent
9a98b479b1
commit
36ed580f4d
@ -135,7 +135,7 @@ void WebBrowser::initializeLayout() {
|
|||||||
|
|
||||||
m_loadingLayout = new QHBoxLayout();
|
m_loadingLayout = new QHBoxLayout();
|
||||||
m_loadingLayout->setMargin(0);
|
m_loadingLayout->setMargin(0);
|
||||||
m_loadingLayout->addWidget(m_lblProgress, 0, Qt::AlignLeft|Qt::AlignVCenter);
|
m_loadingLayout->addWidget(m_lblProgress, 0, Qt::AlignLeft | Qt::AlignVCenter);
|
||||||
m_loadingProgress->setLayout(m_loadingLayout);
|
m_loadingProgress->setLayout(m_loadingLayout);
|
||||||
|
|
||||||
// Setup layout.
|
// Setup layout.
|
||||||
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user