diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-09-16 00:51:50 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-09-16 00:51:50 +0200 |
commit | b33af30051796d6e150bc632da102124d9939ea7 (patch) | |
tree | 4a5c8ed6479ebe79884c3a2da33a8ec201fc0aa5 /src | |
parent | Wallet/previewbar: adjust the already existing bar's target. (diff) | |
parent | Notification bar: fix a memory leak. (diff) | |
download | rekonq-b33af30051796d6e150bc632da102124d9939ea7.tar.xz |
Merge commit 'refs/merge-requests/2295' of git://gitorious.org/rekonq/mainline
Diffstat (limited to 'src')
-rw-r--r-- | src/notificationbar.cpp | 6 | ||||
-rw-r--r-- | src/notificationbar.h | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/notificationbar.cpp b/src/notificationbar.cpp index 1ff29e92..94c5cba8 100644 --- a/src/notificationbar.cpp +++ b/src/notificationbar.cpp @@ -74,6 +74,12 @@ NotificationBar::NotificationBar(QWidget *parent) setGraphicsEffect(m_blinkEffect); } +NotificationBar::~NotificationBar() +{ + delete m_opacityAnimation; + delete m_blinkEffect; +} + void NotificationBar::notifyUser(int animationDuration) { m_opacityAnimation->setDuration(animationDuration); diff --git a/src/notificationbar.h b/src/notificationbar.h index 15b0255c..858fac80 100644 --- a/src/notificationbar.h +++ b/src/notificationbar.h @@ -37,8 +37,9 @@ class NotificationBar : public QWidget { public: explicit NotificationBar(QWidget *parent = 0); + ~NotificationBar(); - void notifyUser(int animationDuration = 500); + void notifyUser(int animationDuration = 400); private: BlinkEffect *m_blinkEffect; |