summaryrefslogtreecommitdiff
path: root/include/vcl/window.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-04-27 12:08:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-04-27 17:22:07 +0200
commit1d7349476b98dff8038ad44f7806fd404b68c993 (patch)
tree6e6cb54aba13abaf6972219abc4c011dffa4c2c0 /include/vcl/window.hxx
parenteb0524839521e563ed8f9fc17a8117a0cf74da34 (diff)
Related: tdf#117178 rollover is always done in visually released button mode
a quirk of the menutogglebutton is that in rollover it always gets drawn as if its released, so refactor confusing stuff to take visual mode from a DrawButtonFlags, allowing the dropping of DrawFlags::NoRollover Change-Id: I14225bd0d2fbc8276a2b0a26c20673df0105891c Reviewed-on: https://gerrit.libreoffice.org/53562 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/window.hxx')
-rw-r--r--include/vcl/window.hxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx
index 6b5dd1b8ab7c..1c27a8737f42 100644
--- a/include/vcl/window.hxx
+++ b/include/vcl/window.hxx
@@ -376,11 +376,10 @@ enum class DrawFlags
NoMnemonic = 0x0010,
NoSelection = 0x0020,
NoBackground = 0x0040,
- NoRollover = 0x0080,
};
namespace o3tl
{
- template<> struct typed_flags<DrawFlags> : is_typed_flags<DrawFlags, 0x00ff> {};
+ template<> struct typed_flags<DrawFlags> : is_typed_flags<DrawFlags, 0x007f> {};
}
// DialogControl-Flags