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

LibGUI: Allow scrolling through a ComboBox with the mouse wheel

This commit is contained in:
Andreas Kling 2020-05-12 15:10:31 +02:00
parent 18ff75e67b
commit e064999e0d
4 changed files with 51 additions and 26 deletions

View file

@ -30,6 +30,8 @@
namespace GUI {
class ComboBoxEditor;
class ComboBox : public Widget {
C_OBJECT(ComboBox)
public:
@ -62,7 +64,7 @@ protected:
virtual void resize_event(ResizeEvent&) override;
private:
RefPtr<TextBox> m_editor;
RefPtr<ComboBoxEditor> m_editor;
RefPtr<Button> m_open_button;
RefPtr<Window> m_list_window;
RefPtr<ListView> m_list_view;