From 734914261347d51dfd4f1140b037c52c86060277 Mon Sep 17 00:00:00 2001 From: Bayram Çiçek Date: Tue, 4 Jun 2024 15:21:41 +0300 Subject: tdf#159375: turn cursor into a wait cursor while search MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 Change-Id: I944db49b14a652b4a52f0d38696f60385ee9f85b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168402 Reviewed-by: Heiko Tietze Tested-by: Jenkins --- cui/source/options/treeopt.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cui/source') 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 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() -- cgit eoffice-6-2'>distro/cib/libreoffice-6-2 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff