a possible fix for the memleak
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=641985
This commit is contained in:
parent
ed8d4db4aa
commit
1e359b07c9
@ -42,7 +42,7 @@ class KDE_EXPORT CheckBox : public DataVisualization,public QGraphicsItem
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
CheckBox(QGraphicsItem *parent = 0);
|
CheckBox(QGraphicsItem *parent = 0);
|
||||||
~CheckBox();
|
virtual ~CheckBox();
|
||||||
|
|
||||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
|
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
|
||||||
QRectF boundingRect() const;
|
QRectF boundingRect() const;
|
||||||
|
@ -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
|
* 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
|
* it under the terms of the GNU Library General Public License version 2 as
|
||||||
@ -79,6 +79,7 @@ PushButton::PushButton(QGraphicsItem *parent)
|
|||||||
|
|
||||||
PushButton::~PushButton()
|
PushButton::~PushButton()
|
||||||
{
|
{
|
||||||
|
delete d;
|
||||||
}
|
}
|
||||||
|
|
||||||
QRectF PushButton::boundingRect() const
|
QRectF PushButton::boundingRect() const
|
||||||
|
@ -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
|
* 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
|
* 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;
|
typedef enum {NONE,HOVER,PRESSED,RELEASED} ButtonState;
|
||||||
|
|
||||||
PushButton(QGraphicsItem *parent = 0);
|
PushButton(QGraphicsItem *parent = 0);
|
||||||
~PushButton();
|
virtual ~PushButton();
|
||||||
|
|
||||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
|
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
|
||||||
QRectF boundingRect() const;
|
QRectF boundingRect() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user