1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:07:35 +00:00

Taskbar/QuickLaunchWidget: Allow reordering the entries :^)

You can now drag the entries in the QuickLaunchWidget to reorder them!
This commit is contained in:
david072 2023-11-05 10:11:35 +01:00 committed by Andreas Kling
parent 63cac2839d
commit 84340c4ca7
2 changed files with 80 additions and 2 deletions

View file

@ -125,6 +125,11 @@ private:
void set_or_insert_entry(NonnullOwnPtr<QuickLaunchEntry>);
void remove_entry(DeprecatedString const&);
void recalculate_order();
bool m_dragging { false };
Gfx::IntPoint m_mouse_pos;
int m_grab_offset { 0 };
RefPtr<GUI::Menu> m_context_menu;
RefPtr<GUI::Action> m_context_menu_default_action;