1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:47:34 +00:00

Taskbar/QuickLaunchWidget: Show a tooltip with the entry's name on hover

This commit is contained in:
david072 2023-11-05 12:38:08 +01:00 committed by Andreas Kling
parent 2d29a96dbe
commit 620b3bd492

View file

@ -14,6 +14,7 @@
#include <LibCore/Process.h>
#include <LibCore/System.h>
#include <LibDesktop/Launcher.h>
#include <LibGUI/Application.h>
#include <LibGUI/BoxLayout.h>
#include <LibGUI/FileIconProvider.h>
#include <LibGUI/Menu.h>
@ -209,6 +210,9 @@ void QuickLaunchWidget::mousemove_event(GUI::MouseEvent& event)
entry->set_hovered(rect.contains(event.position()));
if (entry->is_pressed())
m_dragging = true;
if (entry->is_hovered())
GUI::Application::the()->show_tooltip(String::from_deprecated_string(entry->name()).release_value_but_fixme_should_propagate_errors(), this);
});
if (m_dragging)