diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-02-28 19:28:32 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-02-28 19:28:32 +0100 |
commit | c45c938b62e7f667acbe956ec13a7fc18e340d4d (patch) | |
tree | 820c6bc25fb04d03ec961548bda44105a7c6d576 /src/notificationbar.cpp | |
parent | Do NOT parse suggestions referred to empty strings (diff) | |
download | rekonq-c45c938b62e7f667acbe956ec13a7fc18e340d4d.tar.xz |
Clean up all d-tors to fix an eventual crash on exit
Diffstat (limited to 'src/notificationbar.cpp')
-rw-r--r-- | src/notificationbar.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
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 <http://www.gnu.org/licenses/>. * * ============================================================ */ + + // 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; |