NotificationWindow: Set notification text as tooltip content

This commit is contained in:
Itamar 2021-02-10 20:01:40 +02:00 committed by Andreas Kling
commit 653c3d5812
Notes: sideshowbarker 2024-07-18 22:26:31 +09:00

View file

@ -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>();