Mem leak--

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=841816
This commit is contained in:
Laurent Montel 2008-08-04 06:40:35 +00:00
parent b123a8e8b1
commit cc7db99997
2 changed files with 6 additions and 0 deletions

View File

@ -116,6 +116,11 @@ NativeTabBar::NativeTabBar(QWidget *parent)
setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred );
}
NativeTabBar::~NativeTabBar()
{
delete d;
}
QRect NativeTabBar::tabRect(int index) const
{
QRect rect = QTabBar::tabRect(index).translated(d->left, d->top);

View File

@ -34,6 +34,7 @@ class NativeTabBar : public QTabBar
public:
NativeTabBar(QWidget *parent = 0);
~NativeTabBar();
QRect tabRect(int index) const;
QSize tabSizeHint(int index) const;