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

ComboTabBar: Add setFocusPolicy

TabBar is setting Qt::NoFocus policy which was ignored
This commit is contained in:
David Rosca 2017-01-27 16:51:14 +01:00
parent 6e15e85919
commit 8ba412e584
2 changed files with 8 additions and 0 deletions

View File

@ -498,6 +498,13 @@ bool ComboTabBar::isPinned(int index) const
return index >= 0 && index < pinnedTabsCount();
}
void ComboTabBar::setFocusPolicy(Qt::FocusPolicy policy)
{
QWidget::setFocusPolicy(policy);
m_mainTabBar->setFocusPolicy(policy);
m_pinnedTabBar->setFocusPolicy(policy);
}
void ComboTabBar::setObjectName(const QString &name)
{
m_mainTabBar->setObjectName(name);

View File

@ -117,6 +117,7 @@ public:
bool isPinned(int index) const;
void setMaxVisiblePinnedTab(int max);
void setFocusPolicy(Qt::FocusPolicy policy);
void setObjectName(const QString &name);
void setMouseTracking(bool enable);