diff options
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; |