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 <m.weghorn@posteo.de>
Tested-by: Jenkins
This commit is contained in:
Michael Weghorn 2024-12-05 22:49:48 +01:00
parent 6926c820ce
commit 00df9cec57

View file

@ -613,7 +613,12 @@ int QtInstanceTreeView::get_sort_column() const
void QtInstanceTreeView::set_sort_column(int) { assert(false && "Not implemented yet"); } 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 int QtInstanceTreeView::get_height_rows(int) const
{ {