diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-06-03 15:23:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-06-03 20:23:28 +0200 |
commit | 666925f2ab06e690c41c470713dc83f2d752bfb7 (patch) | |
tree | dba388c9c21969235fdc8e337b7c67e63e624361 /svx | |
parent | 3eb90b3370ca0284fdbf09f37d7dc63e5d158be7 (diff) |
perf: use freeze/thaw around block insert of multiple icons
into the style preview widget in the tabbed view
|--1.67%--StylesListUpdateTask::Invoke
| StylesPreviewWindow_Base::UpdateStylesList
| weld::IconView::append (inlined)
| JSIconView::insert
| |
| |--1.58%--SalInstanceIconView::insert
| | |
| | |--1.19%--SvTreeListBox::Insert
| | | SvTreeList::Insert
| | | SvTreeList::Broadcast (inlined)
| | | SvTreeListBox::ModelNotification
Change-Id: I1c1058324a056e7c8fb42f31c5b4919fcc5870e6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152577
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/StylesPreviewWindow.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svx/source/tbxctrls/StylesPreviewWindow.cxx b/svx/source/tbxctrls/StylesPreviewWindow.cxx index a51283d0d750..3cc669ff98ce 100644 --- a/svx/source/tbxctrls/StylesPreviewWindow.cxx +++ b/svx/source/tbxctrls/StylesPreviewWindow.cxx @@ -541,6 +541,7 @@ void StylesPreviewWindow_Base::UpdateStylesList() } } + m_xStylesView->freeze(); m_xStylesView->clear(); for (const auto& rStyle : m_aAllStyles) { @@ -548,6 +549,7 @@ void StylesPreviewWindow_Base::UpdateStylesList() m_xStylesView->append(rStyle.first, rStyle.second, pImg); } + m_xStylesView->thaw(); } StylesPreviewWindow_Impl::StylesPreviewWindow_Impl( |