summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-11-12 14:46:03 +0000
committerMiklos Vajna <vmiklos@collabora.com>2020-11-25 09:35:53 +0100
commit21a0d9db670364e841e06692d3863e4e217f70a0 (patch)
tree4f4fecb72398ebaa20a593786d1a21f818586c68
parentfix unit-test with non-pdfium build (diff)
downloadcore-21a0d9db670364e841e06692d3863e4e217f70a0.tar.gz
core-21a0d9db670364e841e06692d3863e4e217f70a0.zip
tdf#131970 enable tab-cycling between VerticalTabControl members
Related: tdf#131970 icon-switcher should be in single-selection mode Change-Id: I7d009c2345cc7b3a3c692bb8734d9939ce465db2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105764 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r--vcl/source/control/ivctrl.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/control/ivctrl.cxx b/vcl/source/control/ivctrl.cxx
index 82e2bbc0c08b..b995ddfded5c 100644
--- a/vcl/source/control/ivctrl.cxx
+++ b/vcl/source/control/ivctrl.cxx
@@ -447,7 +447,9 @@ VerticalTabControl::VerticalTabControl(vcl::Window* pParent)
WB_ALIGN_LEFT | WB_NOHSCROLL))
, m_xBox(VclPtr<VclVBox>::Create(this))
{
+ SetStyle(GetStyle() | WB_DIALOGCONTROL);
SetType(WindowType::VERTICALTABCONTROL);
+ m_xChooser->SetSelectionMode(SelectionMode::Single);
m_xChooser->SetClickHdl(LINK(this, VerticalTabControl, ChosePageHdl_Impl));
m_xChooser->set_width_request(110);
m_xChooser->set_height_request(400);