summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-12-09 13:32:38 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-12-09 21:50:37 +0100
commit17eb1d0f86a3f5aa6fdf154c244c20c73f3f64ad (patch)
tree004f4892ec81fd3fe7f8ff4a1704794614a7fc6d /vcl/source
parentd58d1c59860078d225ce5226cae0acd678ef24b2 (diff)
use HasChildPathFocus for SpinButton like ComboBox
Change-Id: Ifb95d6f9df8ea1b3f0e678b60e83c9a99d538225 Reviewed-on: https://gerrit.libreoffice.org/84772 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/app/salvtables.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 5b0686a9f77e..8237dbae57e3 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -5159,6 +5159,13 @@ public:
m_xButton->SetDecimalDigits(digits);
}
+ // SpinButton may be comprised of multiple subwidgets, consider the lot as
+ // one thing for focus
+ virtual bool has_focus() const override
+ {
+ return m_xWidget->HasChildPathFocus();
+ }
+
//so with hh::mm::ss, incrementing mm will not reset ss
void DisableRemainderFactor()
{