From kde-commits Fri Nov 07 18:03:22 2008 From: =?utf-8?q?Aaron=20J=2E=20Seigo?= Date: Fri, 07 Nov 2008 18:03:22 +0000 To: kde-commits Subject: KDE/kdelibs/plasma/private Message-Id: <1226081002.510795.7968.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=122608101204704 SVN commit 881295 by aseigo: call the right parent class methods M +7 -7 nativetabbar.cpp --- trunk/KDE/kdelibs/plasma/private/nativetabbar.cpp #881294:881295 @@ -124,7 +124,7 @@ QRect NativeTabBar::tabRect(int index) const { - QRect rect = QTabBar::tabRect(index).translated(d->left, d->top); + QRect rect = KTabBar::tabRect(index).translated(d->left, d->top); if (isVertical()) { rect.setWidth(rect.width() - d->right - d->left); @@ -140,7 +140,7 @@ QSize NativeTabBar::tabSizeHint(int index) const { - //return QTabBar::tabSizeHint(index); + //return KTabBar::tabSizeHint(index); QSize hint = tabSize(index); int minwidth = 0; int minheight = 0; @@ -212,7 +212,7 @@ void NativeTabBar::paintEvent(QPaintEvent *event) { if (!styleSheet().isNull()) { - QTabBar::paintEvent(event); + KTabBar::paintEvent(event); return; } @@ -309,7 +309,7 @@ void NativeTabBar::resizeEvent(QResizeEvent *event) { - QTabBar::resizeEvent(event); + KTabBar::resizeEvent(event); d->currentAnimRect = tabRect(currentIndex()); d->backgroundSvg->resizeFrame(size()); @@ -318,19 +318,19 @@ void NativeTabBar::tabInserted(int index) { - QTabBar::tabInserted(index); + KTabBar::tabInserted(index); emit sizeHintChanged(); } void NativeTabBar::tabRemoved(int index) { - QTabBar::tabRemoved(index); + KTabBar::tabRemoved(index); emit sizeHintChanged(); } void NativeTabBar::tabLayoutChange() { - QTabBar::tabLayoutChange(); + KTabBar::tabLayoutChange(); if (shape() != d->shape) { d->shape = shape();