summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Chauvin <megabigbug@yahoo.fr>2009-08-09 08:52:09 +0200
committerLionel Chauvin <megabigbug@yahoo.fr>2009-08-09 08:52:09 +0200
commite6e5da5de3d0f5b1864ba45215c83308b6c5cc80 (patch)
treeadb190b0a6ff34a39020c80a3ec8079a0ce4234b
parentRemoved old cookies system classes.. (diff)
downloadrekonq-e6e5da5de3d0f5b1864ba45215c83308b6c5cc80.tar.xz
progress bar at 100% is better drawn (fix division issue with int value)
-rw-r--r--src/urlbar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/urlbar.cpp b/src/urlbar.cpp
index 28c63b78..1b1fbc54 100644
--- a/src/urlbar.cpp
+++ b/src/urlbar.cpp
@@ -225,7 +225,7 @@ void UrlBar::paintEvent(QPaintEvent *event)
painter.setPen(Qt::transparent);
QRect backgroundRect = lineEdit()->frameGeometry();
- int mid = backgroundRect.width() / 100 * m_progress;
+ int mid = backgroundRect.width() * m_progress / 100;
QRect progressRect(backgroundRect.x(), backgroundRect.y(), mid, backgroundRect.height());
painter.drawRect(progressRect);
painter.end();