[Libreoffice-commits] core.git: vcl/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Nov 8 09:01:27 UTC 2018
vcl/source/treelist/treelistbox.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 77eb2b81af79e1e987abc300236599821a280b19
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Nov 6 10:14:13 2018 +0000
Commit: Caolán McNamara <caolanm at 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 <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at 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;
More information about the Libreoffice-commits
mailing list