From c45c938b62e7f667acbe956ec13a7fc18e340d4d Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 28 Feb 2011 19:28:32 +0100 Subject: Clean up all d-tors to fix an eventual crash on exit --- src/notificationbar.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/notificationbar.cpp') diff --git a/src/notificationbar.cpp b/src/notificationbar.cpp index 78bdd004..e7ee77d4 100644 --- a/src/notificationbar.cpp +++ b/src/notificationbar.cpp @@ -22,6 +22,8 @@ * along with this program. If not, see . * * ============================================================ */ + + // Self includes #include "notificationbar.h" #include "notificationbar.moc" @@ -35,17 +37,12 @@ NotificationBar::NotificationBar(QWidget *parent) : QWidget(parent) , m_blinkEffect(new BlinkEffect(this)) - , m_opacityAnimation(new QPropertyAnimation(m_blinkEffect, "opacity")) + , m_opacityAnimation(new QPropertyAnimation(m_blinkEffect, "opacity", this)) { m_blinkEffect->setOpacity(0); setGraphicsEffect(m_blinkEffect); } -NotificationBar::~NotificationBar() -{ - delete m_opacityAnimation; - delete m_blinkEffect; -} void NotificationBar::notifyUser(int animationDuration) { @@ -56,6 +53,7 @@ void NotificationBar::notifyUser(int animationDuration) } + void NotificationBar::destroy() { qDebug() << Q_FUNC_INFO << "deleting the bar" << this; -- cgit v1.2.1