Kaydet (Commit) 77eb2b81 authored tarafından Caolán McNamara's avatar Caolán McNamara

support enable-tree-lines

Change-Id: If50176e4c4ee0ce1d1746aeb516dda48631f6b07
Reviewed-on: https://gerrit.libreoffice.org/62939
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst dec3752e
...@@ -3656,6 +3656,14 @@ bool SvTreeListBox::set_property(const OString &rKey, const OUString &rValue) ...@@ -3656,6 +3656,14 @@ bool SvTreeListBox::set_property(const OString &rKey, const OUString &rValue)
{ {
set_min_width_in_chars(rValue.toInt32()); set_min_width_in_chars(rValue.toInt32());
} }
if (rKey == "enable-tree-lines")
{
auto nStyle = GetStyle();
nStyle &= ~(WB_HASLINES | WB_HASLINESATROOT);
if (toBool(rValue))
nStyle |= (WB_HASLINES | WB_HASLINESATROOT);
SetStyle(nStyle);
}
else else
return Control::set_property(rKey, rValue); return Control::set_property(rKey, rValue);
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment