diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-08-10 15:14:50 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-08-10 15:14:50 +0200 |
commit | aa34e511fceac0451de3d03319d9caa320c2ccb6 (patch) | |
tree | 08772d0fd8aa7349c279e021c811961712da5a7a /src/urlbar.cpp | |
parent | Removing unuseful QUrl class from guessUrlFromString method (diff) | |
download | rekonq-aa34e511fceac0451de3d03319d9caa320c2ccb6.tar.xz |
Fixing bug 203156, about stop/reload switch on tab switching.
Anyway, the fix seems quite "hackish" to me.
Perhaps someone else will think something better..
BUG: 203156
Diffstat (limited to 'src/urlbar.cpp')
-rw-r--r-- | src/urlbar.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/urlbar.cpp b/src/urlbar.cpp index 1b1fbc54..94f248e3 100644 --- a/src/urlbar.cpp +++ b/src/urlbar.cpp @@ -244,10 +244,7 @@ void UrlBar::focusOutEvent(QFocusEvent *event) QSize UrlBar::sizeHint() const { - QSize size(lineEdit()->sizeHint()); - // make it (more or less) the same height with search bar (at least on oxygen) -// size.setHeight(size.height() + 2); - return size; + return lineEdit()->sizeHint(); } @@ -266,9 +263,19 @@ QLinearGradient UrlBar::generateGradient(const QColor &color, int height) return gradient; } + void UrlBar::setBackgroundColor(QColor c) { s_defaultBaseColor=c; repaint(); } + +bool UrlBar::isLoading() +{ + if(m_progress == 0) + { + return false; + } + return true; +} |