vcl/qt5/QtInstanceBuilder.cxx  |    1 +
 vcl/qt5/QtInstanceIconView.cxx |    6 ++++++
 2 files changed, 7 insertions(+)

New commits:
commit b3ba248a58edef45412a6369b68c64582cf01316
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Wed Feb 12 20:30:36 2025 +0100
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Thu Feb 13 08:51:13 2025 +0100

    tdf#130857 qt weld: Set icon view icon size to max icon used
    
    When adding an item with an icon, adjust both icon size
    dimensions to be at least as large as the icon is, as otherwise
    the icon is downscaled.
    
    This addresses the
    
    > Currently, the icons in the dialog are very small.
    
    aspect mentioned for the "Insert" -> "Fontwork" dialog
    in previous commit
    
        Change-Id: Idbc6ba8c67becafa294e49b638e541add1b5bc21
        Author: Michael Weghorn <m.wegh...@posteo.de>
        Date:   Wed Feb 12 20:15:49 2025 +0100
    
            tdf#130857 qt weld: Support "Fontwork Gallery" dialog
    
    Change-Id: I94daac01b50846ea2743905c795c9266b9706d42
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181510
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>
    Tested-by: Jenkins

diff --git a/vcl/qt5/QtInstanceIconView.cxx b/vcl/qt5/QtInstanceIconView.cxx
index d8bb72d10473..c8b802f72c8f 100644
--- a/vcl/qt5/QtInstanceIconView.cxx
+++ b/vcl/qt5/QtInstanceIconView.cxx
@@ -64,7 +64,13 @@ void QtInstanceIconView::insert(int nPos, const OUString* 
pStr, const OUString*
         if (pId)
             pItem->setData(toQString(*pId), ROLE_ID);
         if (pIcon)
+        {
             pItem->setIcon(QIcon(toQPixmap(*pIcon)));
+            // set list view icon size to avoid downscaling
+            const QSize aIconSize
+                = 
m_pListView->iconSize().expandedTo(toQSize(pIcon->GetOutputSizePixel()));
+            m_pListView->setIconSize(aIconSize);
+        }
 
         m_pModel->insertRow(nPos, pItem);
     });
commit 59b624b75d44e6db5194be7f79ff539796a5d5f4
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Wed Feb 12 20:15:49 2025 +0100
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Thu Feb 13 08:51:05 2025 +0100

    tdf#130857 qt weld: Support "Fontwork Gallery" dialog
    
    Declare support for the "Fontwork Gallery" dialog  that can be
    triggered like this:
    
    1) start Writer
    2) "Insert" -> "Fontwork"
    
    This means that native Qt widgets are used for that dialog
    now when using the qt5 or qt6 VCL plugin and starting LO with
    environment variable SAL_VCL_QT_USE_WELDED_WIDGETS=1 set.
    
    Currently, the icons in the dialog are very small.
    
    Change-Id: Idbc6ba8c67becafa294e49b638e541add1b5bc21
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181509
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/vcl/qt5/QtInstanceBuilder.cxx b/vcl/qt5/QtInstanceBuilder.cxx
index cf59e6a6605d..4bfa1d1ffb14 100644
--- a/vcl/qt5/QtInstanceBuilder.cxx
+++ b/vcl/qt5/QtInstanceBuilder.cxx
@@ -101,6 +101,7 @@ bool QtInstanceBuilder::IsUIFileSupported(const OUString& 
rUIFile)
         u"svt/ui/printersetupdialog.ui"_ustr,
         u"svt/ui/restartdialog.ui"_ustr,
         u"svx/ui/compressgraphicdialog.ui"_ustr,
+        u"svx/ui/fontworkgallerydialog.ui"_ustr,
         u"svx/ui/gotopagedialog.ui"_ustr,
         u"svx/ui/safemodedialog.ui"_ustr,
         u"vcl/ui/openlockedquerybox.ui"_ustr,

Reply via email to