From 53f2f59ade349bd404672ee3a5a06f1289afa190 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 5 Oct 2013 13:18:04 +0300 Subject: Allow scroll listboxes and popup list by holding and moving mouse. --- src/gui/widgets/popuplist.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/widgets/popuplist.h') diff --git a/src/gui/widgets/popuplist.h b/src/gui/widgets/popuplist.h index ad2ad0d03..b4575d51e 100644 --- a/src/gui/widgets/popuplist.h +++ b/src/gui/widgets/popuplist.h @@ -63,6 +63,8 @@ class PopupList final : public Popup, void focusLost(const gcn::Event& event A_UNUSED) override; + void mousePressed(gcn::MouseEvent& mouseEvent) override; + void mouseReleased(gcn::MouseEvent& mouseEvent) override; private: @@ -70,6 +72,7 @@ class PopupList final : public Popup, ListBox *mListBox; ScrollArea *mScrollArea; DropDown *mDropDown; + int mPressedIndex; bool mModal; }; -- cgit v1.2.3-70-g09d2