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

TabWidget: Fix emitting tabMoved when pinning tabs

This commit is contained in:
David Rosca 2018-02-01 20:21:11 +01:00
parent 188082b690
commit 349f6b9c32
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
2 changed files with 11 additions and 0 deletions

View File

@ -638,6 +638,15 @@ void TabWidget::closeToLeft(int index)
} }
} }
int TabWidget::pinUnPinTab(int index, const QString &title)
{
const int newIndex = TabStackedWidget::pinUnPinTab(index, title);
if (index != newIndex) {
emit tabMoved(index, newIndex);
}
return newIndex;
}
void TabWidget::detachTab(WebTab* tab) void TabWidget::detachTab(WebTab* tab)
{ {
Q_ASSERT(tab); Q_ASSERT(tab);

View File

@ -93,6 +93,8 @@ public:
ToolButton* buttonClosedTabs() const; ToolButton* buttonClosedTabs() const;
AddTabButton* buttonAddTab() const; AddTabButton* buttonAddTab() const;
int pinUnPinTab(int index, const QString &title = QString());
void detachTab(WebTab* tab); void detachTab(WebTab* tab);
public slots: public slots: