a possible fix for the memleak

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=641985
This commit is contained in:
Siraj Razick 2007-03-13 00:32:17 +00:00
parent ed8d4db4aa
commit 1e359b07c9
3 changed files with 5 additions and 4 deletions

View File

@ -42,7 +42,7 @@ class KDE_EXPORT CheckBox : public DataVisualization,public QGraphicsItem
public:
CheckBox(QGraphicsItem *parent = 0);
~CheckBox();
virtual ~CheckBox();
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
QRectF boundingRect() const;

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2007 by Siraj Razick siraj@kdemail.net
* Copyright (C) 2007 by Siraj Razick siraj@kde.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License version 2 as
@ -79,6 +79,7 @@ PushButton::PushButton(QGraphicsItem *parent)
PushButton::~PushButton()
{
delete d;
}
QRectF PushButton::boundingRect() const

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2007 by Siraj Razick siraj@kdemail.net
* Copyright (C) 2007 by Siraj Razick siraj@kde.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License version 2 as
@ -40,7 +40,7 @@ class KDE_EXPORT PushButton : public DataVisualization,public QGraphicsItem, pub
typedef enum {NONE,HOVER,PRESSED,RELEASED} ButtonState;
PushButton(QGraphicsItem *parent = 0);
~PushButton();
virtual ~PushButton();
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
QRectF boundingRect() const;