1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

[ProgressBar] Use update() instead of repaint()

update() does not trigger repaint immediately. It helps with
speed of restoring crashed session (progressbar does not need to be
refreshed for every restored tab immediately).

The same change was made for SiteIcon in PopupLocationBar
This commit is contained in:
nowrep 2014-03-25 17:06:50 +01:00
parent 545b3f9c54
commit 4305b59028
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ public:
explicit PopupSiteIcon(QWidget* parent = 0) : QWidget(parent) { }
void setIcon(const QIcon &icon) {
m_icon = QIcon(icon.pixmap(16, 16));
repaint();
update();
}
private:

View File

@ -33,7 +33,7 @@ void ProgressBar::setValue(int value)
{
m_value = value;
if (m_lastPaintedValue != m_value) {
repaint();
update();
}
}