cui/source/dialogs/screenshotannotationdlg.cxx | 39 +++++++++++++------------ 1 file changed, 21 insertions(+), 18 deletions(-)
New commits: commit a11926f900e5b20c1ef924d139a8ae35937aa224 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Oct 10 13:07:05 2019 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Oct 10 15:31:32 2019 +0200 Picture can be in anonymous namespace Change-Id: I484443e70b6465a98851aede32df1975d55d75d0 Reviewed-on: https://gerrit.libreoffice.org/80604 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/cui/source/dialogs/screenshotannotationdlg.cxx b/cui/source/dialogs/screenshotannotationdlg.cxx index 67373ec6f323..cc43afa14a2f 100644 --- a/cui/source/dialogs/screenshotannotationdlg.cxx +++ b/cui/source/dialogs/screenshotannotationdlg.cxx @@ -104,27 +104,30 @@ namespace } } -class Picture : public weld::CustomWidgetController +namespace { -private: - ScreenshotAnnotationDlg_Impl *m_pDialog; - bool m_bMouseOver; -private: - virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&) override; - virtual bool MouseMove(const MouseEvent& rMouseEvent) override; - virtual bool MouseButtonUp(const MouseEvent& rMouseEvent) override; -public: - Picture(ScreenshotAnnotationDlg_Impl* pDialog) - : m_pDialog(pDialog) - , m_bMouseOver(false) + class Picture : public weld::CustomWidgetController { - } + private: + ScreenshotAnnotationDlg_Impl *m_pDialog; + bool m_bMouseOver; + private: + virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&) override; + virtual bool MouseMove(const MouseEvent& rMouseEvent) override; + virtual bool MouseButtonUp(const MouseEvent& rMouseEvent) override; + public: + Picture(ScreenshotAnnotationDlg_Impl* pDialog) + : m_pDialog(pDialog) + , m_bMouseOver(false) + { + } - bool IsMouseOver() const - { - return m_bMouseOver; - } -}; + bool IsMouseOver() const + { + return m_bMouseOver; + } + }; +} class ScreenshotAnnotationDlg_Impl { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits