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:
parent
2d29a96dbe
commit
620b3bd492
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue