From 00df9cec579057853b781b43c336f2ec0c2a91ed Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Thu, 5 Dec 2024 22:49:48 +0100 Subject: [PATCH] tdf#130857 qt weld: Implement QtInstanceTreeView::clear Used e.g. in RTSDevicePage::FillValueBox (i.e. in the "File" -> "Printer Settings" -> "Properties" dialog). Change-Id: Ice39b266b366a6fd6b37b6ece28cee529990dc80 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177909 Reviewed-by: Michael Weghorn Tested-by: Jenkins --- vcl/qt5/QtInstanceTreeView.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vcl/qt5/QtInstanceTreeView.cxx b/vcl/qt5/QtInstanceTreeView.cxx index 4211307c36da..70bfd40e0ea6 100644 --- a/vcl/qt5/QtInstanceTreeView.cxx +++ b/vcl/qt5/QtInstanceTreeView.cxx @@ -613,7 +613,12 @@ int QtInstanceTreeView::get_sort_column() const void QtInstanceTreeView::set_sort_column(int) { assert(false && "Not implemented yet"); } -void QtInstanceTreeView::clear() { assert(false && "Not implemented yet"); } +void QtInstanceTreeView::clear() +{ + SolarMutexGuard g; + + GetQtInstance().RunInMainThread([&] { m_pModel->clear(); }); +} int QtInstanceTreeView::get_height_rows(int) const {