diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2021-04-02 20:13:32 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2021-04-14 11:06:08 +0200 |
commit | 5f18922496ec60255097048d9b00b70fc6ccbba5 (patch) | |
tree | fc32a0e0f09d16bf7a6cffd38c6a0f1e386078bf /desktop | |
parent | d8d1b869e8554c0aa1e13114b9fe1fdc236c47d8 (diff) |
jsdialog: uitest: handle click for drawing area
Change-Id: I5ea78697b87f4b2a468f8507470b62031bee4aa0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113524
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index dca49bd79014..8d641cd1383f 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -3818,6 +3818,20 @@ static void lcl_sendDialogEvent(unsigned long long int nWindowId, const char* pA aMap["VALUE"] = aMap["data"]; pUIWindow->execute(sValue, aMap); } + else if (sAction == "click" && sControlType == "drawingarea") + { + int separatorPos = aMap["data"].indexOf(';'); + if (separatorPos > 0) + { + // x;y + aMap["POSX"] = aMap["data"].copy(0, separatorPos); + aMap["POSY"] = aMap["data"].copy(separatorPos + 1); + + pUIWindow->execute(sClickAction, aMap); + } + else + bIsClickAction = true; + } else bIsClickAction = true; |