diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-08 18:58:44 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-08 18:58:44 +0200 |
commit | 7f2eeb0b35d07469815f8221c8f5e0d300899f58 (patch) | |
tree | 7dde32ea37170e8e0dbaa494676d442c889d89c4 /Servers/WindowServer/WSWindow.cpp | |
parent | 3e175c9a96977f14a8adcf1b5a021ccb48f3b194 (diff) | |
download | serenity-7f2eeb0b35d07469815f8221c8f5e0d300899f58.zip |
LibGUI+WindowServer: Add support for GWidget tooltips.
Any GWidget can have a tooltip and it will automatically pop up below the
center of the widget when hovered. GActions added to GToolBars will use
the action text() as their tooltip automagically. :^)
Diffstat (limited to 'Servers/WindowServer/WSWindow.cpp')
-rw-r--r-- | Servers/WindowServer/WSWindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Servers/WindowServer/WSWindow.cpp b/Servers/WindowServer/WSWindow.cpp index 10d800ced5..40dd9b5925 100644 --- a/Servers/WindowServer/WSWindow.cpp +++ b/Servers/WindowServer/WSWindow.cpp @@ -107,6 +107,8 @@ static WSAPI_WindowType to_api(WSWindowType ws_type) return WSAPI_WindowType::WindowSwitcher; case WSWindowType::Taskbar: return WSAPI_WindowType::Taskbar; + case WSWindowType::Tooltip: + return WSAPI_WindowType::Tooltip; default: ASSERT_NOT_REACHED(); } |