recalculate the active tab rectangle when a tab gets added or removed
BUG:243002 svn path=/trunk/KDE/kdelibs/; revision=1143660
This commit is contained in:
parent
d55911f7c0
commit
791fa67a23
@ -367,12 +367,24 @@ void NativeTabBar::tabInserted(int index)
|
|||||||
{
|
{
|
||||||
KTabBar::tabInserted(index);
|
KTabBar::tabInserted(index);
|
||||||
emit sizeHintChanged();
|
emit sizeHintChanged();
|
||||||
|
|
||||||
|
d->currentAnimRect = tabRect(currentIndex());
|
||||||
|
d->backgroundSvg->resizeFrame(size());
|
||||||
|
d->syncBorders();
|
||||||
|
|
||||||
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void NativeTabBar::tabRemoved(int index)
|
void NativeTabBar::tabRemoved(int index)
|
||||||
{
|
{
|
||||||
KTabBar::tabRemoved(index);
|
KTabBar::tabRemoved(index);
|
||||||
emit sizeHintChanged();
|
emit sizeHintChanged();
|
||||||
|
|
||||||
|
d->currentAnimRect = tabRect(currentIndex());
|
||||||
|
d->backgroundSvg->resizeFrame(size());
|
||||||
|
d->syncBorders();
|
||||||
|
|
||||||
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void NativeTabBar::tabLayoutChange()
|
void NativeTabBar::tabLayoutChange()
|
||||||
|
Loading…
Reference in New Issue
Block a user