]> git.sur5r.net Git - minitube/commitdiff
Navigate recent keywords with the keyboard by pressing Tab
authorFlavio Tordini <flavio.tordini@gmail.com>
Thu, 2 Jul 2009 21:00:49 +0000 (23:00 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Thu, 2 Jul 2009 21:00:49 +0000 (23:00 +0200)
src/SearchView.cpp

index c1f2cbe68287e06ea079b01eb8da58425fd9f045..51719883ebb0c52e9cd78eb613d3457e7e74c665 100644 (file)
@@ -126,6 +126,7 @@ void SearchView::updateRecentKeywords() {
         QLabel *itemLabel = new QLabel("<a href=\"" + keyword
                                        + "\" style=\"color:palette(text); text-decoration:none\">"
                                        + keyword + "</a>", this);
+        itemLabel->setTextInteractionFlags(Qt::LinksAccessibleByKeyboard);
         connect(itemLabel, SIGNAL(linkActivated(QString)), this, SLOT(watch(QString)));
         recentKeywordsLayout->addWidget(itemLabel);
     }