summaryrefslogtreecommitdiff
path: root/src/gui/widgets/popuplist.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-05 13:18:04 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-05 13:18:04 +0300
commit53f2f59ade349bd404672ee3a5a06f1289afa190 (patch)
treeca595c457181a742bbebd3f890480341c949399b /src/gui/widgets/popuplist.h
parent01660865a49250c6ed77159cb3d8b38e7ea37b95 (diff)
downloadmanaplus-53f2f59ade349bd404672ee3a5a06f1289afa190.tar.gz
manaplus-53f2f59ade349bd404672ee3a5a06f1289afa190.tar.bz2
manaplus-53f2f59ade349bd404672ee3a5a06f1289afa190.tar.xz
manaplus-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.h3
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;
};