diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-20 02:56:10 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-20 02:26:55 +0000 |
commit | bf748bb20fd949cc67661de20e6f53a842089f60 (patch) | |
tree | eda31ea3f25c898d09dad0098f6f311893c69eff | |
parent | c4a6f300f5d529f2853930b1674bd63a4c953584 (diff) |
support typing into the spin field
Change-Id: I2cae24d36d1eebf48f52646d84e7f6d291c8e473
Reviewed-on: https://gerrit.libreoffice.org/26492
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r-- | vcl/source/uitest/uiobject.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/vcl/source/uitest/uiobject.cxx b/vcl/source/uitest/uiobject.cxx index 0f399f121a24..27c7af59711a 100644 --- a/vcl/source/uitest/uiobject.cxx +++ b/vcl/source/uitest/uiobject.cxx @@ -829,7 +829,7 @@ SpinFieldUIObject::~SpinFieldUIObject() } void SpinFieldUIObject::execute(const OUString& rAction, - const StringMap& /*rParameters*/) + const StringMap& rParameters) { if (rAction == "UP") { @@ -839,6 +839,17 @@ void SpinFieldUIObject::execute(const OUString& rAction, { mxSpinField->Down(); } + else if (rAction == "TYPE") + { + if (mxSpinField->GetSubEdit()) + { + Edit* pSubEdit = mxSpinField->GetSubEdit(); + EditUIObject aSubObject(pSubEdit); + aSubObject.execute(rAction, rParameters); + } + } + else + EditUIObject::execute(rAction, rParameters); } StringMap SpinFieldUIObject::get_state() |