diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-04-27 12:08:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-04-27 17:22:07 +0200 |
commit | 1d7349476b98dff8038ad44f7806fd404b68c993 (patch) | |
tree | 6e6cb54aba13abaf6972219abc4c011dffa4c2c0 /include/vcl/window.hxx | |
parent | eb0524839521e563ed8f9fc17a8117a0cf74da34 (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.hxx | 3 |
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 |