summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-05-29 21:25:09 +0100
committerMichael Stahl <michael.stahl@allotropia.de>2022-05-31 12:31:54 +0200
commit7c411a6df34ce5b04f964b0410b6d2535389918d (patch)
tree58d21b5bea761078c20b51c9959737ac5798e5bc /include
parentdaafc32c5625757091e7cf80711a18639bd36bf0 (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.hxx9
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: */