From e324eb4d8dc3a931bbacae017d4b38c80c930faf Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 19 May 2010 01:23:28 +0200 Subject: Cedric patch about urlbar --- src/urlbar/urlbar.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/urlbar') diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp index 06d281e1..6ec461a2 100644 --- a/src/urlbar/urlbar.cpp +++ b/src/urlbar/urlbar.cpp @@ -90,6 +90,9 @@ UrlBar::UrlBar(QWidget *parent) // insert decoded URLs setUrlDropsEnabled(true); + // tooltip + setToolTip(i18n("Type here to search your bookmarks, history and the web..")); + // accept focus, via tabbing, clicking & wheeling setFocusPolicy(Qt::WheelFocus); @@ -194,8 +197,8 @@ void UrlBar::paintEvent(QPaintEvent *event) QPainter painter(this); painter.setPen(Qt::gray); painter.drawText(textRect, - Qt::AlignCenter, - i18n("Start typing here to search your bookmarks, history and the web...") + Qt::AlignVCenter | Qt::AlignCenter, + i18n("Type here to search your bookmarks, history and the web..") ); } } -- cgit v1.2.1