[Libreoffice-commits] core.git: include/vcl vcl/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 28 18:15:42 UTC 2020


 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 <caolanm at redhat.com>
AuthorDate: Fri Aug 28 12:39:13 2020 +0100
Commit:     Caolán McNamara <caolanm at 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 <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at 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);


More information about the Libreoffice-commits mailing list