diff --git a/src/plugins/VerticalTabs/tablistview.cpp b/src/plugins/VerticalTabs/tablistview.cpp index 24952af9c..54d60fab5 100644 --- a/src/plugins/VerticalTabs/tablistview.cpp +++ b/src/plugins/VerticalTabs/tablistview.cpp @@ -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); diff --git a/src/plugins/VerticalTabs/tabtreeview.cpp b/src/plugins/VerticalTabs/tabtreeview.cpp index 862660e6a..358450daf 100644 --- a/src/plugins/VerticalTabs/tabtreeview.cpp +++ b/src/plugins/VerticalTabs/tabtreeview.cpp @@ -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);