mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
fixed toolTip on pinning/unpinning (#2598)
This commit is contained in:
parent
31e4d5fd5f
commit
582fb72115
@ -262,6 +262,8 @@ int TabStackedWidget::pinUnPinTab(int index, const QString &title)
|
||||
|
||||
bool makePinned = index >= m_tabBar->pinnedTabsCount();
|
||||
QWidget* button = m_tabBar->tabButton(index, m_tabBar->iconButtonPosition());
|
||||
// To show tooltip of tab which is pinned in the current session
|
||||
QString toolTip = tabToolTip(index);
|
||||
|
||||
m_tabBar->m_blockCurrentChangedSignal = true;
|
||||
m_tabBar->setTabButton(index, m_tabBar->iconButtonPosition(), 0);
|
||||
@ -271,6 +273,7 @@ int TabStackedWidget::pinUnPinTab(int index, const QString &title)
|
||||
|
||||
m_tabBar->setTabButton(newIndex, m_tabBar->iconButtonPosition(), button);
|
||||
m_tabBar->m_blockCurrentChangedSignal = false;
|
||||
setTabToolTip(newIndex, toolTip);
|
||||
|
||||
// Restore current widget
|
||||
setCurrentWidget(currentWidget);
|
||||
|
Loading…
Reference in New Issue
Block a user