From 0f025b702a1964c429ab670c9b8aee8636d209b2 Mon Sep 17 00:00:00 2001 From: Alexander Volkov Date: Thu, 9 Apr 2020 17:08:03 +0300 Subject: Qt5 implement DELETE_ITEMS action in file picker It is used to clear "Version" listbox before adding new items. Change-Id: I4cb9557c8f56d80c1dfac68dc2b5b45b5c69c2f1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91982 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski (cherry picked from commit 3a22be0178b950ab3d21eadab2bc34e7ea93eec8) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92174 Reviewed-by: Michael Weghorn --- vcl/qt5/Qt5FilePicker.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vcl') diff --git a/vcl/qt5/Qt5FilePicker.cxx b/vcl/qt5/Qt5FilePicker.cxx index d37c28b33c11..d648a5d94b75 100644 --- a/vcl/qt5/Qt5FilePicker.cxx +++ b/vcl/qt5/Qt5FilePicker.cxx @@ -431,6 +431,11 @@ void Qt5FilePicker::handleSetListValue(QComboBox* pWidget, sal_Int16 nControlAct pWidget->removeItem(nPos); break; } + case ControlActions::DELETE_ITEMS: + { + pWidget->clear(); + break; + } case ControlActions::SET_SELECT_ITEM: { sal_Int32 nPos = 0; -- cgit