]> git.sur5r.net Git - minitube/commitdiff
Fix unclickable labels on the Mac
authorFlavio Tordini <flavio.tordini@gmail.com>
Fri, 3 Jul 2009 07:58:07 +0000 (09:58 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Fri, 3 Jul 2009 07:58:07 +0000 (09:58 +0200)
src/SearchView.cpp

index 51719883ebb0c52e9cd78eb613d3457e7e74c665..a74bf9bebaff32d417927013287655be4528618c 100644 (file)
@@ -126,7 +126,11 @@ void SearchView::updateRecentKeywords() {
         QLabel *itemLabel = new QLabel("<a href=\"" + keyword
                                        + "\" style=\"color:palette(text); text-decoration:none\">"
                                        + keyword + "</a>", this);
+#ifndef Q_WS_MAC
+        // Make links navigable with the keyboard
+        // this makes links nonclickable on the Mac, so it's disabled
         itemLabel->setTextInteractionFlags(Qt::LinksAccessibleByKeyboard);
+#endif
         connect(itemLabel, SIGNAL(linkActivated(QString)), this, SLOT(watch(QString)));
         recentKeywordsLayout->addWidget(itemLabel);
     }