From 9e5e6d59b75a5188620fd5428af37f61bb812b0c Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 3 Jun 2010 12:34:06 +0200 Subject: This easy solution should fix problems with long urls that pass right icons BUG:238695 --- src/urlbar/urlbar.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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)); } -- cgit v1.2.1