vcl/source/treelist/treelistbox.cxx | 8 ++++++++ 1 file changed, 8 insertions(+)
New commits: commit 77eb2b81af79e1e987abc300236599821a280b19 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Nov 6 10:14:13 2018 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Nov 8 09:59:33 2018 +0100 support enable-tree-lines Change-Id: If50176e4c4ee0ce1d1746aeb516dda48631f6b07 Reviewed-on: https://gerrit.libreoffice.org/62939 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/source/treelist/treelistbox.cxx b/vcl/source/treelist/treelistbox.cxx index 7507394801de..dccdbda4db2f 100644 --- a/vcl/source/treelist/treelistbox.cxx +++ b/vcl/source/treelist/treelistbox.cxx @@ -3656,6 +3656,14 @@ bool SvTreeListBox::set_property(const OString &rKey, const OUString &rValue) { 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 return Control::set_property(rKey, rValue); return true; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits