1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

ComboTabBar: Disable focusing scroll buttons

This commit is contained in:
David Rosca 2017-08-12 15:56:26 +02:00
parent 0203cab204
commit 67c6834a5f

View File

@ -1366,6 +1366,7 @@ TabBarScrollWidget::TabBarScrollWidget(QTabBar* tabBar, QWidget* parent)
m_scrollArea->setWidget(m_tabBar);
m_leftScrollButton = new ToolButton(this);
m_leftScrollButton->setFocusPolicy(Qt::NoFocus);
m_leftScrollButton->setAutoRaise(true);
m_leftScrollButton->setObjectName("tabbar-button-left");
m_leftScrollButton->setAutoRepeat(true);
@ -1376,6 +1377,7 @@ TabBarScrollWidget::TabBarScrollWidget(QTabBar* tabBar, QWidget* parent)
connect(m_leftScrollButton, SIGNAL(middleMouseClicked()), this, SLOT(ensureVisible()));
m_rightScrollButton = new ToolButton(this);
m_rightScrollButton->setFocusPolicy(Qt::NoFocus);
m_rightScrollButton->setAutoRaise(true);
m_rightScrollButton->setObjectName("tabbar-button-right");
m_rightScrollButton->setAutoRepeat(true);