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:
parent
188082b690
commit
349f6b9c32
@ -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);
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user