summaryrefslogtreecommitdiff
path: root/src/urlbar
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-06-12 16:04:07 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-06-12 16:13:08 +0200
commit278de55ad646130a388732309549c48b62a14b03 (patch)
tree2c700f523c96104aadfaf131a581d11f52d3ae46 /src/urlbar
parentClean up urlbar code by removing duplicated code (diff)
downloadrekonq-278de55ad646130a388732309549c48b62a14b03.tar.xz
Cleans up
- set initial icon to have properly dimensions set - properly calculate needed icon's height - calm down some kDebug messages
Diffstat (limited to 'src/urlbar')
-rw-r--r--src/urlbar/urlbar.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp
index abbf1296..8535e045 100644
--- a/src/urlbar/urlbar.cpp
+++ b/src/urlbar/urlbar.cpp
@@ -109,6 +109,9 @@ UrlBar::UrlBar(QWidget *parent)
{
setLayoutDirection(Qt::LeftToRight);
+ // set initial icon
+ _icon->setIcon(KIcon("arrow-right"));
+
// initial style
setStyleSheet(QString("UrlBar { padding: 2px 0 2px %1px; height: %1px } ").arg(_icon->sizeHint().width()));
@@ -619,7 +622,7 @@ void UrlBar::clearRightIcons()
void UrlBar::resizeEvent(QResizeEvent *event)
{
- int ih = _icon->height();
+ int ih = _icon->sizeHint().height();
int iconsCount = _rightIconsList.count();
int iconHeight = (height() - ih) / 2;