1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +00:00

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
parent f8d65e57ba
commit 653c3d5812

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