Fix mem leak
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=805683
This commit is contained in:
parent
30b6b8d188
commit
09fb90b051
@ -104,6 +104,11 @@ PanelToolbox::PanelToolbox(QGraphicsItem *parent)
|
||||
setFlag(ItemIgnoresTransformations, true);
|
||||
}
|
||||
|
||||
PanelToolbox::~PanelToolbox()
|
||||
{
|
||||
delete d;
|
||||
}
|
||||
|
||||
QRectF PanelToolbox::boundingRect() const
|
||||
{
|
||||
if (orientation() == Qt::Vertical) {
|
||||
|
@ -43,6 +43,7 @@ class PanelToolbox : public Toolbox
|
||||
|
||||
public:
|
||||
explicit PanelToolbox(QGraphicsItem *parent = 0);
|
||||
~PanelToolbox();
|
||||
QRectF boundingRect() const;
|
||||
QPainterPath shape() const;
|
||||
|
||||
|
@ -312,6 +312,7 @@ RunnerManager::RunnerManager(KConfigGroup& config, QObject *parent)
|
||||
|
||||
RunnerManager::~RunnerManager()
|
||||
{
|
||||
delete d;
|
||||
}
|
||||
|
||||
AbstractRunner* RunnerManager::runner(const QString &name) const
|
||||
|
@ -61,6 +61,11 @@ Toolbox::Toolbox(QGraphicsItem *parent)
|
||||
setAcceptsHoverEvents(true);
|
||||
}
|
||||
|
||||
Toolbox::~Toolbox()
|
||||
{
|
||||
delete d;
|
||||
}
|
||||
|
||||
void Toolbox::addTool(QGraphicsItem *tool, const QString &name)
|
||||
{
|
||||
if (!tool) {
|
||||
|
@ -38,6 +38,7 @@ class Toolbox : public QObject, public QGraphicsItem
|
||||
|
||||
public:
|
||||
explicit Toolbox(QGraphicsItem *parent = 0);
|
||||
~Toolbox();
|
||||
|
||||
void addTool(QGraphicsItem *tool, const QString &name);
|
||||
void enableTool(const QString &tool, bool enabled);
|
||||
|
Loading…
Reference in New Issue
Block a user