vcl/qt5/QtBuilder.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 7b1f65f3f1b570cc497deec8e5412b90eee6555b
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Fri Apr 25 21:58:21 2025 +0200
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Sun Apr 27 07:24:07 2025 +0200

    tdf#130857 qt weld: Suppport separator menu items
    
    Implement support for "GtkSeparatorMenuItem" objects
    in .ui files.
    
    This is used e.g. in Writer's "Tools" -> "AutoText" dialog
    (.ui file: sw/uiconfig/swriter/ui/autotext.ui) which
    isn't supported by Qt weld yet.
    
    Change-Id: I506ad2627a174b5a48c256c5c9bce11189a95497
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184669
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/vcl/qt5/QtBuilder.cxx b/vcl/qt5/QtBuilder.cxx
index b96c12263cd5..b6b1d73748c7 100644
--- a/vcl/qt5/QtBuilder.cxx
+++ b/vcl/qt5/QtBuilder.cxx
@@ -678,6 +678,10 @@ void QtBuilder::insertMenuObject(QMenu* pParent, QMenu* 
pSubMenu, const OUString
         if (!sGroup.isEmpty())
             setMenuActionGroup(pParent, pAction, sGroup);
     }
+    else if (rClass == u"GtkSeparatorMenuItem")
+    {
+        pAction->setSeparator(true);
+    }
     else
     {
         assert(false && "Not implemented yet");

Reply via email to