[Libreoffice-commits] core.git: vcl/qt5

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Feb 20 15:55:03 UTC 2019


 vcl/qt5/Qt5FilePicker.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit c5947393cdd433a4a9d3e19ded1e9ca6ef384d74
Author:     Michael Weghorn <m.weghorn at posteo.de>
AuthorDate: Wed Feb 6 17:45:56 2019 +0100
Commit:     Katarina Behrens <Katarina.Behrens at cib.de>
CommitDate: Wed Feb 20 16:54:34 2019 +0100

    Qt5FilePicker::addCustomControl: Add missing from kde5
    
    Take over functionality from 'KDE5FilePicker::addCustomControl'
    that has not been implemented in qt5 one yet.
    
    Change-Id: I9690e163b3b739bfec6813d9a4e1e0170b730187
    Reviewed-on: https://gerrit.libreoffice.org/68056
    Tested-by: Jenkins
    Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>

diff --git a/vcl/qt5/Qt5FilePicker.cxx b/vcl/qt5/Qt5FilePicker.cxx
index 9a0d6e820783..0d2025cec55b 100644
--- a/vcl/qt5/Qt5FilePicker.cxx
+++ b/vcl/qt5/Qt5FilePicker.cxx
@@ -624,9 +624,13 @@ void Qt5FilePicker::addCustomControl(sal_Int16 controlId)
         case LISTBOX_IMAGE_TEMPLATE:
             resId = STR_FPICKER_IMAGE_TEMPLATE;
             break;
+        case LISTBOX_IMAGE_ANCHOR:
+            resId = STR_FPICKER_IMAGE_ANCHOR;
+            break;
         case LISTBOX_VERSION_LABEL:
         case LISTBOX_TEMPLATE_LABEL:
         case LISTBOX_IMAGE_TEMPLATE_LABEL:
+        case LISTBOX_IMAGE_ANCHOR_LABEL:
         case LISTBOX_FILTER_SELECTOR:
             break;
     }
@@ -653,6 +657,7 @@ void Qt5FilePicker::addCustomControl(sal_Int16 controlId)
             break;
         case LISTBOX_VERSION:
         case LISTBOX_TEMPLATE:
+        case LISTBOX_IMAGE_ANCHOR:
         case LISTBOX_IMAGE_TEMPLATE:
         case LISTBOX_FILTER_SELECTOR:
             label = new QLabel(getResString(resId), m_pExtraControls);
@@ -662,6 +667,7 @@ void Qt5FilePicker::addCustomControl(sal_Int16 controlId)
         case LISTBOX_VERSION_LABEL:
         case LISTBOX_TEMPLATE_LABEL:
         case LISTBOX_IMAGE_TEMPLATE_LABEL:
+        case LISTBOX_IMAGE_ANCHOR_LABEL:
             break;
     }
 


More information about the Libreoffice-commits mailing list