summaryrefslogtreecommitdiff
path: root/vcl/inc/jsdialog
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2023-03-09 12:04:36 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2023-03-21 12:36:31 +0000
commit33f97ddd549b4ebd72b5fea327378667d55796ff (patch)
tree0fd9a17e6cf3d04f8ec949252ffc632b5eb890fe /vcl/inc/jsdialog
parent3911b23c89da02eca92a0069bf1035155b7fddae (diff)
jsdialog: set text for textview on every key press
for that we need to set text without sending back notification to not disturb user in typing we need to keep the selection at the same place Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: Ib5c4a53e61dbc2cf28d450fb44fc5a2957ff57b6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148533 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149191 Tested-by: Jenkins
Diffstat (limited to 'vcl/inc/jsdialog')
-rw-r--r--vcl/inc/jsdialog/jsdialogbuilder.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/inc/jsdialog/jsdialogbuilder.hxx b/vcl/inc/jsdialog/jsdialogbuilder.hxx
index 19458a938c02..0c6cbaa48080 100644
--- a/vcl/inc/jsdialog/jsdialogbuilder.hxx
+++ b/vcl/inc/jsdialog/jsdialogbuilder.hxx
@@ -666,6 +666,7 @@ public:
JSTextView(JSDialogSender* pSender, ::VclMultiLineEdit* pTextView, SalInstanceBuilder* pBuilder,
bool bTakeOwnership);
virtual void set_text(const OUString& rText) override;
+ void set_text_without_notify(const OUString& rText);
virtual void replace_selection(const OUString& rText) override;
};