diff options
author | Alexander Volkov <avolkov@astralinux.ru> | 2020-04-09 17:08:03 +0300 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2020-04-20 08:03:31 +0200 |
commit | 0f025b702a1964c429ab670c9b8aee8636d209b2 (patch) | |
tree | 88290295d3d0b387a1fe900eff41b40d302489aa /vcl/qt5 | |
parent | 57fee3e548cc23163c0d6d5c8be63f6a1336cf8a (diff) |
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 <glogow@fbihome.de>
(cherry picked from commit 3a22be0178b950ab3d21eadab2bc34e7ea93eec8)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92174
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl/qt5')
-rw-r--r-- | vcl/qt5/Qt5FilePicker.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
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; |