From feb9595464815c2a3e3ecca93a7ae7f441153207 Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Fri, 22 Jan 2010 22:41:47 +0100 Subject: [PATCH] Fixed long queries in the recent keywords list (Thanks to Vadim P.) --- CHANGES | 1 + src/SearchView.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index f91a1ab..4b8087d 100644 --- a/CHANGES +++ b/CHANGES @@ -5,6 +5,7 @@ - Fixed toolbar search suggestions working just once (Thanks to Salvatore Benedetto) - Fixed toobar search incorrect handling of keys that also represent a shortcut (like Escape or Space) - Fixed time formatting bug with videos longer than an hour (Thanks to Rene Bogusch) +- Fixed long queries in the recent keywords list (Thanks to Vadim P.) - Norwegian translation by Jan W. Skjoldal 0.8.1 - November 20, 2009 diff --git a/src/SearchView.cpp b/src/SearchView.cpp index e819e8d..62eb5dc 100644 --- a/src/SearchView.cpp +++ b/src/SearchView.cpp @@ -145,7 +145,8 @@ void SearchView::updateRecentKeywords() { + "\" style=\"color:palette(text); text-decoration:none\">" + keyword + "", this); - itemLabel->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); + itemLabel->setMaximumWidth(queryEdit->width() + watchButton->width()); + // itemLabel->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); // Make links navigable with the keyboard too itemLabel->setTextInteractionFlags(Qt::LinksAccessibleByKeyboard | Qt::LinksAccessibleByMouse); -- 2.39.5