aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-07-30 21:46:38 +0000
committerGerald Combs <gerald@wireshark.org>2012-07-30 21:46:38 +0000
commitfc1e1a9d4cd1a93df59d3275e69c43df699a253d (patch)
tree3a81a51f2110689c0899da7cf0f77e1a2d68774a /ui/qt
parent4563416c9381408d2812e49c116325b273344689 (diff)
Get rid of a couple of focus halos.
svn path=/trunk/; revision=44145
Diffstat (limited to 'ui/qt')
-rw-r--r--ui/qt/interface_tree.cpp3
-rw-r--r--ui/qt/main_welcome.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/ui/qt/interface_tree.cpp b/ui/qt/interface_tree.cpp
index 7472c90e66..afdf059836 100644
--- a/ui/qt/interface_tree.cpp
+++ b/ui/qt/interface_tree.cpp
@@ -46,6 +46,9 @@ InterfaceTree::InterfaceTree(QWidget *parent) :
header()->setVisible(false);
setRootIsDecorated(false);
setUniformRowHeights(true);
+#ifdef Q_WS_MAC
+ setAttribute(Qt::WA_MacShowFocusRect, false);
+#endif
setAccessibleName(tr("Welcome screen list"));
setStyleSheet(
diff --git a/ui/qt/main_welcome.cpp b/ui/qt/main_welcome.cpp
index b06416be22..88d4a46301 100644
--- a/ui/qt/main_welcome.cpp
+++ b/ui/qt/main_welcome.cpp
@@ -138,6 +138,9 @@ MainWelcome::MainWelcome(QWidget *parent) :
"}"
);
m_recent_files.setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
+#ifdef Q_WS_MAC
+ m_recent_files.setAttribute(Qt::WA_MacShowFocusRect, false);
+#endif
m_recent_files.setTextElideMode(Qt::ElideLeft);
column->addWidget(&m_recent_files);
connect(wsApp, SIGNAL(updateRecentItemStatus(const QString &, qint64, bool)), this, SLOT(updateRecentFiles()));