From 340b4638cd9a597c23e167b2779c4efcf2f465e9 Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Fri, 3 Jul 2009 09:58:07 +0200 Subject: [PATCH] Fix unclickable labels on the Mac --- src/SearchView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SearchView.cpp b/src/SearchView.cpp index 5171988..a74bf9b 100644 --- a/src/SearchView.cpp +++ b/src/SearchView.cpp @@ -126,7 +126,11 @@ void SearchView::updateRecentKeywords() { QLabel *itemLabel = new QLabel("" + keyword + "", 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); } -- 2.39.5