diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-06-03 12:34:06 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-06-03 12:34:06 +0200 |
commit | 9e5e6d59b75a5188620fd5428af37f61bb812b0c (patch) | |
tree | 99e4ce127c31f02322531a6a13fd1e8eadb44c4f /src/urlbar | |
parent | Fix suggestion colors. (diff) | |
download | rekonq-9e5e6d59b75a5188620fd5428af37f61bb812b0c.tar.xz |
This easy solution should fix problems with long urls that pass right icons
BUG:238695
Diffstat (limited to 'src/urlbar')
-rw-r--r-- | src/urlbar/urlbar.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp index b46eccdb..33515de6 100644 --- a/src/urlbar/urlbar.cpp +++ b/src/urlbar/urlbar.cpp @@ -303,7 +303,12 @@ void UrlBar::loadFinished() connect(bt, SIGNAL(clicked(QPoint)), _tab->page(), SLOT(showSSLInfo(QPoint))); } - update(); + // we need to update urlbar after the right icon settings + // removing this code (where setStyleSheet automatically calls update) needs adding again + // an update call + kDebug() << "resetting stylesheet"; + int rightIconWidth = 25 * (_rightIconsList.count()); + setStyleSheet(QString("UrlBar { padding: 0 %2px 0 %1px;} ").arg(_icon->sizeHint().width()).arg(rightIconWidth)); } |