summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-03-28 10:12:45 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-03-28 10:12:45 +0200
commit64408ad486db25f0124f934aed55af72f2cd6d39 (patch)
tree7d78380879eb87fe5a57e30c8b99063234297c36
parentrekonq 0.4.56 (diff)
downloadrekonq-64408ad486db25f0124f934aed55af72f2cd6d39.tar.xz
update is better than repaint :)
-rw-r--r--src/urlbar/urlbar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp
index 718d9f67..189d19fe 100644
--- a/src/urlbar/urlbar.cpp
+++ b/src/urlbar/urlbar.cpp
@@ -155,7 +155,7 @@ void UrlBar::setUrl(const QUrl& url)
void UrlBar::setProgress(int progress)
{
m_progress = progress;
- repaint();
+ update();
}
@@ -225,14 +225,14 @@ void UrlBar::loadFinished(bool)
{
// reset progress bar after small delay
m_progress = 0;
- QTimer::singleShot(200, this, SLOT(repaint()));
+ QTimer::singleShot(200, this, SLOT(update()));
}
void UrlBar::updateProgress(int progress)
{
m_progress = progress;
- repaint();
+ update();
}
@@ -295,7 +295,7 @@ QLinearGradient UrlBar::generateGradient(const QColor &color, int height)
void UrlBar::setBackgroundColor(QColor c)
{
s_defaultBaseColor = c;
- repaint();
+ update();
}