diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2021-04-02 20:13:32 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2021-04-16 14:55:04 +0200 |
commit | ebeb1d1ae554e8301d876b19afc05f454acdfc1c (patch) | |
tree | e30baa02e46223a07b07e98eb135263f6ad97c2e /include | |
parent | f38465834acf42b6a6023ea4b1bb7cdd09c77030 (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>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114202
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/layout.hxx | 7 | ||||
-rw-r--r-- | include/vcl/uitest/uiobject.hxx | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx index 9a896915b1ed..5a2b7310ea48 100644 --- a/include/vcl/layout.hxx +++ b/include/vcl/layout.hxx @@ -707,12 +707,7 @@ private: } } virtual void StartDrag(sal_Int8 nAction, const Point& rPosPixel) override; - virtual FactoryFunction GetUITestFactory() const override - { - if (m_pFactoryFunction) - return m_pFactoryFunction; - return Control::GetUITestFactory(); - } + virtual FactoryFunction GetUITestFactory() const override; public: VclDrawingArea(vcl::Window *pParent, WinBits nStyle) diff --git a/include/vcl/uitest/uiobject.hxx b/include/vcl/uitest/uiobject.hxx index 1a2c192a4c63..b4df10a40c9e 100644 --- a/include/vcl/uitest/uiobject.hxx +++ b/include/vcl/uitest/uiobject.hxx @@ -557,6 +557,8 @@ protected: public: DrawingAreaUIObject(const VclPtr<vcl::Window>& rDrawingArea); virtual ~DrawingAreaUIObject() override; + virtual void execute(const OUString& rAction, const StringMap& rParameters) override; + static std::unique_ptr<UIObject> create(vcl::Window* pWindow); }; #endif |