diff options
author | Bayram Çiçek <bayram.cicek@collabora.com> | 2024-06-04 15:21:41 +0300 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2024-06-06 10:00:49 +0200 |
commit | 734914261347d51dfd4f1140b037c52c86060277 (patch) | |
tree | 8be3d878caa04085562c2e6c0514a65e89bf64b2 | |
parent | c6a2fb62947ae8411a8a336d74f2ceb2258c899c (diff) |
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.cicek@collabora.com>
Change-Id: I944db49b14a652b4a52f0d38696f60385ee9f85b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168402
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
-rw-r--r-- | cui/source/options/treeopt.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
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() |