diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-05 13:18:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-05 13:18:04 +0300 |
commit | 53f2f59ade349bd404672ee3a5a06f1289afa190 (patch) | |
tree | ca595c457181a742bbebd3f890480341c949399b /src/gui/widgets/popuplist.h | |
parent | 01660865a49250c6ed77159cb3d8b38e7ea37b95 (diff) | |
download | plus-53f2f59ade349bd404672ee3a5a06f1289afa190.tar.gz plus-53f2f59ade349bd404672ee3a5a06f1289afa190.tar.bz2 plus-53f2f59ade349bd404672ee3a5a06f1289afa190.tar.xz plus-53f2f59ade349bd404672ee3a5a06f1289afa190.zip |
Allow scroll listboxes and popup list by holding and moving mouse.
Diffstat (limited to 'src/gui/widgets/popuplist.h')
-rw-r--r-- | src/gui/widgets/popuplist.h | 3 |
1 files changed, 3 insertions, 0 deletions
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; }; |