include/vcl/InterimItemWindow.hxx | 2 ++ vcl/source/control/InterimItemWindow.cxx | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-)
New commits: commit f6f114e73d429d3e4ec9068208133c3b433c0274 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Aug 28 12:39:13 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Aug 28 20:14:56 2020 +0200 allow overriding the IdleResize method Change-Id: I6c224a68057c7c593dd37299cc4079bd97519cb2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101550 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/include/vcl/InterimItemWindow.hxx b/include/vcl/InterimItemWindow.hxx index 3716c1e2053a..6e406f41f67e 100644 --- a/include/vcl/InterimItemWindow.hxx +++ b/include/vcl/InterimItemWindow.hxx @@ -45,6 +45,8 @@ protected: // returns true if keystroke is consumed bool ChildKeyInput(const KeyEvent& rKEvt); + virtual void IdleResize(); + std::unique_ptr<weld::Builder> m_xBuilder; VclPtr<vcl::Window> m_xVclContentArea; std::unique_ptr<weld::Container> m_xContainer; diff --git a/vcl/source/control/InterimItemWindow.cxx b/vcl/source/control/InterimItemWindow.cxx index 588b4f22e900..86650fb9e8c1 100644 --- a/vcl/source/control/InterimItemWindow.cxx +++ b/vcl/source/control/InterimItemWindow.cxx @@ -69,7 +69,9 @@ void InterimItemWindow::queue_resize(StateChangedType eReason) void InterimItemWindow::Resize() { StartIdleLayout(); } -IMPL_LINK_NOARG(InterimItemWindow, DoResize, Timer*, void) +IMPL_LINK_NOARG(InterimItemWindow, DoResize, Timer*, void) { IdleResize(); } + +void InterimItemWindow::IdleResize() { vcl::Window* pChild = GetWindow(GetWindowType::FirstChild); assert(pChild); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits