1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

VerticalTabs: Set Qt::NoFocus policy

Fixes some styles painting unwanted focus indicator.
This commit is contained in:
David Rosca 2018-02-03 17:45:48 +01:00
parent 8c96660852
commit f3d5f27cdf
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
2 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@ TabListView::TabListView(QWidget *parent)
setDropIndicatorShown(true);
setMouseTracking(true);
setFlow(QListView::LeftToRight);
setFocusPolicy(Qt::NoFocus);
setFrameShape(QFrame::NoFrame);
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);

View File

@ -37,6 +37,7 @@ TabTreeView::TabTreeView(QWidget *parent)
setDropIndicatorShown(true);
setAllColumnsShowFocus(true);
setMouseTracking(true);
setFocusPolicy(Qt::NoFocus);
setFrameShape(QFrame::NoFrame);
setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
setIndentation(0);