summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-23 09:54:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-23 12:37:00 +0200
commit89e97b7e5d309ccfd0ea44e455105520ff557eb1 (patch)
tree111ae0c63795998d1cec0e8bdb8bbe019c3bc5e1 /vcl
parent1bd28e209f2c3ad5fa9c60e365289db70219831e (diff)
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 <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/edit.cxx5
1 files changed, 5 insertions, 0 deletions
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;