From 653c3d5812e491b44fed453fcceaf64ebb985e97 Mon Sep 17 00:00:00 2001 From: Itamar Date: Wed, 10 Feb 2021 20:01:40 +0200 Subject: [PATCH] NotificationWindow: Set notification text as tooltip content --- Userland/Services/NotificationServer/NotificationWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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(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(); right_container.set_fixed_width(36); right_container.set_layout();