diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-05-29 21:25:09 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2022-06-01 12:30:36 +0200 |
commit | e6d224bf4040c896252c95731b104ed5d7777fd0 (patch) | |
tree | 866a86333cf19d6460c9d8afd95f39bcd5403045 /include | |
parent | da0506bc1f14438952e17b78b23813dab0a7901d (diff) |
Related: tdf#89131 draw up/down spins disabled if value is at max/min
if there is a max/min set.
Change-Id: I2dc7ccccad9ec2aa7eb89d8b5fa137e077a846fd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135105
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit 2896c5dad1799addd72b626d93d7e89b1cf19ff6)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135070
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/toolkit/spinfld.hxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/vcl/toolkit/spinfld.hxx b/include/vcl/toolkit/spinfld.hxx index f6de1202a45d..d82348bd44bb 100644 --- a/include/vcl/toolkit/spinfld.hxx +++ b/include/vcl/toolkit/spinfld.hxx @@ -61,6 +61,11 @@ public: virtual FactoryFunction GetUITestFactory() const override; + SAL_DLLPRIVATE void SetUpperEnabled(bool bEnabled); + SAL_DLLPRIVATE void SetLowerEnabled(bool bEnabled); + SAL_DLLPRIVATE bool IsUpperEnabled() const { return mbUpperEnabled; } + SAL_DLLPRIVATE bool IsLowerEnabled() const { return mbLowerEnabled; } + protected: tools::Rectangle maUpperRect; tools::Rectangle maLowerRect; @@ -91,7 +96,9 @@ private: mbInitialDown:1, mbUpperIn:1, mbLowerIn:1, - mbInDropDown:1; + mbInDropDown:1, + mbUpperEnabled:1, + mbLowerEnabled:1; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |