diff options
author | homeboy445 <akshitsan13@gmail.com> | 2021-06-29 21:16:26 +0530 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-07-29 13:41:26 +0200 |
commit | 3e35fb78ac577d6bca9a05276f50ab98a8b6425f (patch) | |
tree | 9e0b7c46721c95df867bb1e0fbcb4c620e2cfb01 /cui/source/options | |
parent | 27612dc0d3afad4f7eec7109a09262e877c63399 (diff) |
Intialize the VCL test dialog directly instead of dispatching command
Change-Id: Ia24c97b12266dac3a6f315993558f3cdac8a4652
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118124
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'cui/source/options')
-rw-r--r-- | cui/source/options/optgdlg.cxx | 7 | ||||
-rw-r--r-- | cui/source/options/optgdlg.hxx | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index b1c2ac5b4adc..6c35426bce6d 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -46,6 +46,7 @@ #include <editeng/editids.hrc> #include <svx/svxids.hrc> #include <svl/intitem.hxx> +#include <GraphicsTestsDialog.hxx> #include <unotools/searchopt.hxx> #include <sal/log.hxx> #include <officecfg/Office/Common.hxx> @@ -585,10 +586,10 @@ OfaViewTabPage::~OfaViewTabPage() { } -IMPL_STATIC_LINK_NOARG(OfaViewTabPage, OnRunGPTestClick, weld::Button&, void) +IMPL_LINK_NOARG(OfaViewTabPage, OnRunGPTestClick, weld::Button&, void) { - comphelper::dispatchCommand(".uno:GraphicTestDialog",{}); - //Launch the Dialog box from here. + GraphicsTestsDialog m_xGraphicsTestDialog(m_xContainer.get()); + m_xGraphicsTestDialog.run(); } IMPL_STATIC_LINK_NOARG(OfaViewTabPage, OnMoreIconsClick, weld::Button&, void) diff --git a/cui/source/options/optgdlg.hxx b/cui/source/options/optgdlg.hxx index ffdfdb423195..198ecb50e0e8 100644 --- a/cui/source/options/optgdlg.hxx +++ b/cui/source/options/optgdlg.hxx @@ -117,7 +117,7 @@ private: DECL_LINK(OnAntialiasingToggled, weld::Toggleable&, void); DECL_LINK(OnUseSkiaToggled, weld::Toggleable&, void); DECL_STATIC_LINK(OfaViewTabPage, OnMoreIconsClick, weld::Button&, void); - DECL_STATIC_LINK(OfaViewTabPage, OnRunGPTestClick, weld::Button&, void); + DECL_LINK(OnRunGPTestClick, weld::Button&, void); void UpdateSkiaStatus(); void HideSkiaWidgets(); void UpdateHardwareAccelStatus(); |