summaryrefslogtreecommitdiff
path: root/src/gui/widgets/widget.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-03 20:41:04 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-03 20:41:04 +0300
commit855947baec01a77f18c8c3cee8c0af000131b71e (patch)
tree323a8589bcefdc6f400065a68dce297f7cda2467 /src/gui/widgets/widget.h
parent2947d6af4334a736eab6ea1ad8147239311ea027 (diff)
downloadManaVerse-855947baec01a77f18c8c3cee8c0af000131b71e.tar.gz
ManaVerse-855947baec01a77f18c8c3cee8c0af000131b71e.tar.bz2
ManaVerse-855947baec01a77f18c8c3cee8c0af000131b71e.tar.xz
ManaVerse-855947baec01a77f18c8c3cee8c0af000131b71e.zip
Fix close dropdowns on item selection.
Diffstat (limited to 'src/gui/widgets/widget.h')
-rw-r--r--src/gui/widgets/widget.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/widgets/widget.h b/src/gui/widgets/widget.h
index 236c7b6ee..86b203666 100644
--- a/src/gui/widgets/widget.h
+++ b/src/gui/widgets/widget.h
@@ -1009,9 +1009,15 @@ class Widget : public Widget2
*/
virtual void showPart(const Rect &rectangle);
- bool isAllowLogic() const
+ bool isAllowLogic() const A_WARN_UNUSED
{ return mAllowLogic; }
+ void setMouseConsume(const bool b)
+ { mMouseConsume = b; }
+
+ bool isMouseConsume() const A_WARN_UNUSED
+ { return mMouseConsume; }
+
protected:
/**
* Distributes an action event to all action listeners
@@ -1222,6 +1228,8 @@ class Widget : public Widget2
bool mAllowLogic;
+ bool mMouseConsume;
+
/**
* Holds the global font used by the widget.
*/