vcl/source/control/edit.cxx | 5 +++++ 1 file changed, 5 insertions(+) New commits: commit 89e97b7e5d309ccfd0ea44e455105520ff557eb1 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Jul 23 09:54:11 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Jul 23 12:37:00 2020 +0200
map border without shadow to WindowBorderStyle::MONO Change-Id: Ie375a00c77679517759ad6f7c165b1da87c8c22e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99277 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 6ecbb32689fd..f274eca3f581 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -203,6 +203,11 @@ bool Edit::set_property(const OString &rKey, const OUString &rValue) } else if (rKey == "placeholder-text") SetPlaceholderText(rValue); + else if (rKey == "shadow-type") + { + if (GetStyle() | WB_BORDER) + SetBorderStyle(rValue == "none" ? WindowBorderStyle::MONO : WindowBorderStyle::NORMAL); + } 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