From 3906bb7bed74619b1de2c556bd98bbbaec44cce8 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Tue, 17 Mar 2026 15:23:14 +0100 Subject: [PATCH] tdf#130857 widgettestdialog: Use GtkComboBoxText Replace GtkComboBox "combo_box_enable" that has preexisting entries defined in a GtkListStore with a GtkComboBoxText with corresponding items predefined directly without using a separate list store. That better aligns this with what is done elsewhere and what e.g. commit e0218ed419378d3c31978bb6765f41e09371dc4f Date: Thu Sep 26 11:58:15 2019 +0100 weld ORelationDialog and DlgQryJoin and other commits also switched to elsewhere. It also makes the entries show up when using the qt6 VCL plugin with native widgets enabled (SAL_VCL_QT_USE_WELDED_WIDGETS=1) where support for the previous way of defining entries isn't implemented (and it doesn't seem worthwile to implement such support). To trigger the dialog: * in "Tools" -> "Customize", set a keyboard shortcut for function/UNO command ".uno:WidgetTestDialog" * close the dialog and activat the shortcut The `git grep ''` output shows that by now, only 3 more .ui files use the way of defining `` in models: $ git grep '' | grep \\.ui | uniq dbaccess/uiconfig/ui/relationdialog.ui: sw/uiconfig/swriter/ui/insertcaption.ui: vcl/qa/cppunit/builder/demo.ui: Change-Id: Idce2668b6d1e55ae7dda634ba18e41a07f4735b3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201940 Reviewed-by: Michael Weghorn Tested-by: Jenkins --- cui/uiconfig/ui/widgettestdialog.ui | 45 ++++++----------------------- 1 file changed, 9 insertions(+), 36 deletions(-) diff --git a/cui/uiconfig/ui/widgettestdialog.ui b/cui/uiconfig/ui/widgettestdialog.ui index b0c645446e08..f527574aaff3 100644 --- a/cui/uiconfig/ui/widgettestdialog.ui +++ b/cui/uiconfig/ui/widgettestdialog.ui @@ -2,31 +2,6 @@ - - - - - - - - - - Test 1 - - - Test 2 - - - Test 3 - - - Test 4 - - - Test 5 - - - @@ -317,20 +292,18 @@ - + True False - liststore1 + 2 True - 0 - 1 - - - False - Test 3 - True - - + + Test 1 + Test 2 + Test 3 + Test 4 + Test 5 + 1