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:
parent
6926c820ce
commit
00df9cec57
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue