mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +00:00
NotificationWindow: Set notification text as tooltip content
This commit is contained in:
parent
f8d65e57ba
commit
653c3d5812
1 changed files with 4 additions and 0 deletions
|
@ -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>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue