mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
ComboTabBar: Add setFocusPolicy
TabBar is setting Qt::NoFocus policy which was ignored
This commit is contained in:
parent
6e15e85919
commit
8ba412e584
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user