diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-20 17:53:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-20 18:49:07 +0300 |
commit | 775d6f983a18457b82747ac6c53123f84629ede5 (patch) | |
tree | 7a13a11156825d7186fa2305caf07854893adf0a /src/gui/widgets/widget.cpp | |
parent | 0cc66ba20aa01f5319fcea108abdca5916c5c61b (diff) | |
download | manaplus-775d6f983a18457b82747ac6c53123f84629ede5.tar.gz manaplus-775d6f983a18457b82747ac6c53123f84629ede5.tar.bz2 manaplus-775d6f983a18457b82747ac6c53123f84629ede5.tar.xz manaplus-775d6f983a18457b82747ac6c53123f84629ede5.zip |
Add support for unselectable widgets.
If move mouse over or try to select, this widget will be ignored.
Set labels unselectable by default.
Set unselectable tabs in debug window.
Diffstat (limited to 'src/gui/widgets/widget.cpp')
-rw-r--r-- | src/gui/widgets/widget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/widget.cpp b/src/gui/widgets/widget.cpp index 986d97d99..4b4600dd6 100644 --- a/src/gui/widgets/widget.cpp +++ b/src/gui/widgets/widget.cpp @@ -105,7 +105,8 @@ Widget::Widget(const Widget2 *const widget) : mEnabled(true), mAllowLogic(true), mMouseConsume(true), - mRedraw(true) + mRedraw(true), + mSelectable(true) { mAllWidgets.push_back(this); mAllWidgetsSet.insert(this); |