diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-05-07 20:28:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-05-08 10:11:43 +0200 |
commit | 962bf806f655e3c631bc1b77f8419e5e8fc64c0c (patch) | |
tree | 5fddabb206437dea8705b25d66dfaa12837f3f43 /vcl/source | |
parent | 25339ae3ebfe05338a6809d4507c91c79aabff27 (diff) |
remove TriStateBox class
Change-Id: Ia6c76a9f0fc0be7790d0c801cbca4a7b8d478976
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93680
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/control/button.cxx | 6 | ||||
-rw-r--r-- | vcl/source/window/builder.cxx | 7 |
2 files changed, 1 insertions, 12 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index 20528189da18..45c922dcb362 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -3696,10 +3696,4 @@ void ImageButton::ImplInitStyle() SetStyle( nStyle ); } -TriStateBox::TriStateBox( vcl::Window* pParent, WinBits nStyle ) : - CheckBox( pParent, nStyle ) -{ - EnableTriState(); -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 9aef02f6c887..6189412ac8b9 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -1983,13 +1983,8 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window *pParent, const OString & OUString sWrap = BuilderUtils::extractCustomProperty(rMap); if (!sWrap.isEmpty()) nBits |= WB_WORDBREAK; - //maybe always import as TriStateBox and enable/disable tristate bool bIsTriState = extractInconsistent(rMap); - VclPtr<CheckBox> xCheckBox; - if (bIsTriState && m_bLegacy) - xCheckBox = VclPtr<TriStateBox>::Create(pParent, nBits); - else - xCheckBox = VclPtr<CheckBox>::Create(pParent, nBits); + VclPtr<CheckBox> xCheckBox = VclPtr<CheckBox>::Create(pParent, nBits); if (bIsTriState) { xCheckBox->EnableTriState(true); |