diff options
author | Emanoil Kotsev <deloptes@gmail.com> | 2024-07-05 19:06:10 +0000 |
---|---|---|
committer | Emanoil Kotsev <deloptes@gmail.com> | 2024-07-05 19:06:10 +0000 |
commit | a69748ef7a0f9099ab79765696dc7d57af1fa45c (patch) | |
tree | 8ec5575a3574f9a23f6b586612889f8f9e8b7e08 | |
parent | bb680f367a0db0a1c41c386f2ec49190e8ad44d2 (diff) | |
download | kdbusnotification-feat/with_dbus-1-tqt.tar.gz kdbusnotification-feat/with_dbus-1-tqt.zip |
rich text formattingfeat/with_dbus-1-tqt
minimum size for the popup
Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>
-rw-r--r-- | src/daemon/NotificationsService.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/NotificationsService.cpp b/src/daemon/NotificationsService.cpp index 7709965..1c70853 100644 --- a/src/daemon/NotificationsService.cpp +++ b/src/daemon/NotificationsService.cpp @@ -117,6 +117,7 @@ void NotificationsService::NotifyAsync( { nId = ++mNotificationId; notificationMap[nId] = new NotifyWidget(0, app_name.ascii(), this, nId); + notificationMap[nId]->setMinimumSize(200, 40); } if(!hints.empty()) @@ -181,7 +182,7 @@ void NotificationsService::NotifyAsync( if (icon.isEmpty() || ! notificationMap[nId]->setIcon(icon)) { notificationMap[nId]->setTextFormat(TQt::RichText); - notificationMap[nId]->setText(app_name + ":\n" + summary + "\n" + body); + notificationMap[nId]->setText("<b>" + app_name + ": " + summary + "</b><p>" + body + "</p>"); } notificationMap[nId]->setActions(actions); notificationMap[nId]->setTimeout(timeout); |