summaryrefslogtreecommitdiff
path: root/vcl/source/control/edit.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-03-26 15:39:32 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-03-26 22:12:22 +0100
commit2f70e6111b61d52bbdfa753257370cb82bfd30eb (patch)
tree796360fc9d4f0b8e366e930ce800ca93bb5c36c5 /vcl/source/control/edit.cxx
parentc526689112976d87ec7c974c14611f628ce1051d (diff)
support overwrite-mode
Change-Id: I6133aedbebd3ca358e2b916469873c38fc7453cb Reviewed-on: https://gerrit.libreoffice.org/69761 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/control/edit.cxx')
-rw-r--r--vcl/source/control/edit.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index d9d9d3d9730d..72325742cac3 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -195,6 +195,10 @@ bool Edit::set_property(const OString &rKey, const OUString &rValue)
{
SetReadOnly(!toBool(rValue));
}
+ else if (rKey == "overwrite-mode")
+ {
+ SetInsertMode(!toBool(rValue));
+ }
else if (rKey == "visibility")
{
mbPassword = false;