mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 18:46:03 +00:00
Taskbar/QuickLaunchWidget: Show a tooltip with the entry's name on hover
This commit is contained in:
parent
2d29a96dbe
commit
620b3bd492
Notes:
sideshowbarker
2024-07-17 11:06:06 +09:00
Author: https://github.com/david072
Commit: 620b3bd492
Pull-request: https://github.com/SerenityOS/serenity/pull/21797
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