summaryrefslogtreecommitdiff
path: root/vcl/inc/salvtables.hxx
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2022-08-22 18:27:27 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2022-09-26 10:23:36 +0200
commitdb106346a9797565e406cf9c26e762327446f59a (patch)
treea3ef88b2c6ba8abd790f4f6c642357e40b5aa1fd /vcl/inc/salvtables.hxx
parentc4c664e1413b9d4f830a994ee9fa44c1b002f45f (diff)
jsdialog: send action not update for spin button value
This will help us to reduce payload and fix bug where in Chrome regenerated spin field always focused "arrow down" button after click on the "arrow up". Use value from formatter - the same as generated in widget update JSON. Change-Id: I6ace90eb532e894daacb563bc9fb93332fd755ce Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138700 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Rashesh Padia <rashesh.padia@collabora.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140579 Tested-by: Jenkins
Diffstat (limited to 'vcl/inc/salvtables.hxx')
-rw-r--r--vcl/inc/salvtables.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/inc/salvtables.hxx b/vcl/inc/salvtables.hxx
index ed6e35d6e48f..fe1e5078ef2f 100644
--- a/vcl/inc/salvtables.hxx
+++ b/vcl/inc/salvtables.hxx
@@ -622,10 +622,12 @@ public:
class SalInstanceSpinButton : public SalInstanceEntry, public virtual weld::SpinButton
{
-private:
VclPtr<FormattedField> m_xButton;
+
+protected:
Formatter& m_rFormatter;
+private:
DECL_LINK(UpDownHdl, SpinField&, void);
DECL_LINK(LoseFocusHdl, Control&, void);
DECL_LINK(OutputHdl, LinkParamNone*, bool);