[Libreoffice-commits] core.git: vcl/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Jul 23 10:37:47 UTC 2020


 vcl/source/control/edit.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 89e97b7e5d309ccfd0ea44e455105520ff557eb1
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jul 23 09:54:11 2020 +0100
Commit:     Caolán McNamara <caolanm at 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 <caolanm at 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;


More information about the Libreoffice-commits mailing list