diff options
Diffstat (limited to 'vcl/source/uitest/uiobject.cxx')
-rw-r--r-- | vcl/source/uitest/uiobject.cxx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/vcl/source/uitest/uiobject.cxx b/vcl/source/uitest/uiobject.cxx index 77f4014eea7c..d7c6462783d7 100644 --- a/vcl/source/uitest/uiobject.cxx +++ b/vcl/source/uitest/uiobject.cxx @@ -667,7 +667,7 @@ void EditUIObject::execute(const OUString& rAction, const StringMap& rParameters) { bool bHandled = true; - if (rAction == "SET") + if (rAction == "TYPE") { if (rParameters.find("TEXT") != rParameters.end()) { @@ -690,6 +690,17 @@ void EditUIObject::execute(const OUString& rAction, bHandled = false; } } + else if (rAction == "SET") + { + auto it = rParameters.find("TEXT"); + if (it != rParameters.end()) + { + mxEdit->SetText(it->second); + mxEdit->Modify(); + } + else + bHandled = false; + } else if (rAction == "SELECT") { if (rParameters.find("FROM") != rParameters.end() && @@ -704,7 +715,7 @@ void EditUIObject::execute(const OUString& rAction, else if (rAction == "CLEAR") { mxEdit->SetText(""); - mxEdit->UpdateData(); + mxEdit->Modify(); bHandled = true; } else |