summaryrefslogtreecommitdiff
path: root/src/urlbar
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-09 02:06:33 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-09 02:06:33 +0200
commit7fedb0bcaf32ca5cb1de9e4815de08df7098426b (patch)
tree2d9fe6184c62c37c58a99fa62fb7d91c6035f0b7 /src/urlbar
parentUsing oxygen icons, removing the other ones (diff)
downloadrekonq-7fedb0bcaf32ca5cb1de9e4815de08df7098426b.tar.xz
Fixing icons position and saving a couple of moveEvents
Diffstat (limited to 'src/urlbar')
-rw-r--r--src/urlbar/lineedit.cpp11
-rw-r--r--src/urlbar/urlbar.cpp3
2 files changed, 10 insertions, 4 deletions
diff --git a/src/urlbar/lineedit.cpp b/src/urlbar/lineedit.cpp
index 059a0178..09c158fa 100644
--- a/src/urlbar/lineedit.cpp
+++ b/src/urlbar/lineedit.cpp
@@ -63,10 +63,9 @@ LineEdit::LineEdit(QWidget* parent)
// cosmetic
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
setMinimumWidth(200);
- setMinimumHeight(20);
+ setMinimumHeight(26);
// initial style
- _icon->move(4,6);
setStyleSheet( QString("LineEdit { padding: 0 0 0 %1px;} ").arg(_icon->sizeHint().width()) );
// doesn't show the clear button
@@ -177,7 +176,8 @@ void LineEdit::clearRightIcons()
void LineEdit::resizeEvent(QResizeEvent *event)
{
- KLineEdit::resizeEvent(event);
+ int newHeight = ( height() - 19 )/2;
+ _icon->move(4, newHeight );
int iconsCount = _rightIconsList.count();
int w = width();
@@ -185,6 +185,9 @@ void LineEdit::resizeEvent(QResizeEvent *event)
for(int i = 0; i < iconsCount; ++i)
{
IconButton *bt = _rightIconsList.at(i);
- bt->move( w - 23*(i+1), 6);
+ bt->move( w - 25*(i+1), newHeight );
}
+
+ KLineEdit::resizeEvent(event);
+
}
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp
index c5201a1c..adc011f0 100644
--- a/src/urlbar/urlbar.cpp
+++ b/src/urlbar/urlbar.cpp
@@ -249,7 +249,10 @@ void UrlBar::loadFinished()
return;
if(_tab->url().scheme() == QL1S("about") )
+ {
+ update();
return;
+ }
// show KGet downloads??
if(ReKonfig::kgetList())