Commit 66e9410f authored by con's avatar con
Browse files

Fixes: - Unwanted focus halos

parent 3ee7f385
......@@ -70,6 +70,7 @@ OpenEditorsWidget::OpenEditorsWidget()
m_ui.editorList->setTextElideMode(Qt::ElideMiddle);
m_ui.editorList->installEventFilter(this);
m_ui.editorList->setFrameStyle(QFrame::NoFrame);
m_ui.editorList->setAttribute(Qt::WA_MacShowFocusRect, false);
EditorManager *em = EditorManager::instance();
foreach (IEditor *editor, em->openedEditors()) {
registerEditor(editor);
......
......@@ -56,6 +56,7 @@ SearchResultWindow::SearchResultWindow()
m_searchResultTreeView = new SearchResultTreeView(m_widget);
m_searchResultTreeView->setUniformRowHeights(true);
m_searchResultTreeView->setFrameStyle(QFrame::NoFrame);
m_searchResultTreeView->setAttribute(Qt::WA_MacShowFocusRect, false);
m_widget->addWidget(m_searchResultTreeView);
m_noMatchesFoundDisplay = new QListWidget(m_widget);
......
......@@ -89,6 +89,7 @@ FolderNavigationWidget::FolderNavigationWidget(QWidget *parent)
m_filter->setSourceModel(m_dirModel);
m_view->setModel(m_filter);
m_view->setFrameStyle(QFrame::NoFrame);
m_view->setAttribute(Qt::WA_MacShowFocusRect, false);
setFocusProxy(m_view);
QVBoxLayout *layout = new QVBoxLayout();
......
......@@ -75,6 +75,7 @@ public:
setUniformRowHeights(true);
setTextElideMode(Qt::ElideNone);
// setExpandsOnDoubleClick(false);
setAttribute(Qt::WA_MacShowFocusRect, false);
}
protected:
......
......@@ -265,6 +265,7 @@ TaskWindow::TaskWindow()
m_listview->setItemDelegate(tld);
m_listview->setWindowIcon(QIcon(":/qt4projectmanager/images/window.png"));
m_listview->setContextMenuPolicy(Qt::ActionsContextMenu);
m_listview->setAttribute(Qt::WA_MacShowFocusRect, false);
m_taskWindowContext = new TaskWindowContext(m_listview);
core->addContextObject(m_taskWindowContext);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment