summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2021-02-10 20:01:40 +0200
committerAndreas Kling <kling@serenityos.org>2021-02-10 23:04:54 +0100
commit653c3d5812e491b44fed453fcceaf64ebb985e97 (patch)
tree6c7de9e19934d88561ec70d9c4eb040b5ff16183
parentf8d65e57ba313d70e3f176a677da6b7671ced9d7 (diff)
downloadserenity-653c3d5812e491b44fed453fcceaf64ebb985e97.zip
NotificationWindow: Set notification text as tooltip content
-rw-r--r--Userland/Services/NotificationServer/NotificationWindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Services/NotificationServer/NotificationWindow.cpp b/Userland/Services/NotificationServer/NotificationWindow.cpp
index e5739b1c3b..b811521dd7 100644
--- a/Userland/Services/NotificationServer/NotificationWindow.cpp
+++ b/Userland/Services/NotificationServer/NotificationWindow.cpp
@@ -105,6 +105,10 @@ NotificationWindow::NotificationWindow(const String& text, const String& title,
auto& text_label = left_container.add<GUI::Label>(text);
text_label.set_text_alignment(Gfx::TextAlignment::CenterLeft);
+ widget.set_tooltip(text);
+ title_label.set_tooltip(text);
+ text_label.set_tooltip(text);
+
auto& right_container = widget.add<GUI::Widget>();
right_container.set_fixed_width(36);
right_container.set_layout<GUI::HorizontalBoxLayout>();