cui/source/options/treeopt.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit 734914261347d51dfd4f1140b037c52c86060277 Author: Bayram Çiçek <bayram.ci...@collabora.com> AuthorDate: Tue Jun 4 15:21:41 2024 +0300 Commit: Heiko Tietze <heiko.tie...@documentfoundation.org> CommitDate: Thu Jun 6 10:00:49 2024 +0200 tdf#159375: turn cursor into a wait cursor while search - Tools>Options: change cursor type to "wait cursor" while search is running - m_xSearchEdit->set_busy_cursor(true) adds a spinner next to/(or in place of) the mouse cursor. Signed-off-by: Bayram Çiçek <bayram.ci...@collabora.com> Change-Id: I944db49b14a652b4a52f0d38696f60385ee9f85b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168402 Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org> Tested-by: Jenkins diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index f010df6f42a1..27d3d8f243e8 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -793,7 +793,8 @@ IMPL_LINK_NOARG(OfaTreeOptionsDialog, SearchUpdateHdl, weld::Entry&, void) IMPL_LINK_NOARG(OfaTreeOptionsDialog, ImplUpdateDataHdl, Timer*, void) { // initializeAllDialogs() can take a long time, show wait cursor and disable input - std::unique_ptr<weld::WaitObject> xWait(m_pParent ? new weld::WaitObject(m_pParent) : nullptr); + m_xSearchEdit->set_editable(false); + m_xSearchEdit->set_busy_cursor(true); // Pause redraw xTreeLB->freeze(); @@ -820,6 +821,9 @@ IMPL_LINK_NOARG(OfaTreeOptionsDialog, ImplUpdateDataHdl, Timer*, void) // select first child of first node after the search done if (nMatchFound != -1) selectFirstEntry(); + + m_xSearchEdit->set_editable(true); + m_xSearchEdit->set_busy_cursor(false); } void OfaTreeOptionsDialog::selectFirstEntry()