summaryrefslogtreecommitdiffstats
path: root/src/daemon/NotifyWidget.cpp
diff options
context:
space:
mode:
authorEmanoil Kotsev <[email protected]>2024-06-26 20:21:35 +0000
committerEmanoil Kotsev <[email protected]>2024-11-09 18:49:26 +0000
commit7ea09f3f10350e44b8b41566f50449219cf6a4bf (patch)
tree13f43bb3f49078d63cdc992a5f50301bcba6e10d /src/daemon/NotifyWidget.cpp
parentfddb92945609b0b1f69967a9729f030b712ebdca (diff)
downloadkdbusnotification-7ea09f3f10350e44b8b41566f50449219cf6a4bf.tar.gz
kdbusnotification-7ea09f3f10350e44b8b41566f50449219cf6a4bf.zip
Update and clean up
Signed-off-by: Emanoil Kotsev <[email protected]>
Diffstat (limited to 'src/daemon/NotifyWidget.cpp')
-rw-r--r--src/daemon/NotifyWidget.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/daemon/NotifyWidget.cpp b/src/daemon/NotifyWidget.cpp
index 558a80c..482fe84 100644
--- a/src/daemon/NotifyWidget.cpp
+++ b/src/daemon/NotifyWidget.cpp
@@ -38,12 +38,15 @@ NotifyWidget::NotifyWidget(TQWidget *parent, const char *name, NotificationsServ
TQDesktopWidget *d = TQApplication::desktop();
mPosition=TQPoint(d->width()-50, d->height()-20);
move(mPosition);
- TQTimer::singleShot(100, this, TQ_SLOT(fadeAway()));
+// TODO: give the user an option to configure if he/she wants to have
+// the notification fading away from down to top
+// TQTimer::singleShot(100, this, TQ_SLOT(fadeAway()));
}
NotifyWidget::~NotifyWidget()
{
- // TODO Auto-generated destructor stub
+ if(notificationService)
+ delete notificationService;
}
void NotifyWidget::mousePressEvent( TQMouseEvent *e )