From 0d927b52a079e73a0ab8760f583360466628db0b Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Fri, 27 Sep 2024 20:15:11 +0200 Subject: tdf#130857 qt weld: Ignore placeholders In QtBuilder, ignore placeholders as encountered e.g. in "sc/uiconfig/scalc/ui/checkwarningdialog.ui" (that's not yet in the list of supported .ui files for QtInstanceBuilder yet). VclBuilder mostly ignores them as well, see VclBuilder::makeObject. Change-Id: I68481e31365561719af5e72ee20adb428b642941 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174071 Tested-by: Jenkins Reviewed-by: Michael Weghorn --- vcl/qt5/QtBuilder.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vcl/qt5') diff --git a/vcl/qt5/QtBuilder.cxx b/vcl/qt5/QtBuilder.cxx index 09e90354fc6e..58263b981cf8 100644 --- a/vcl/qt5/QtBuilder.cxx +++ b/vcl/qt5/QtBuilder.cxx @@ -70,6 +70,10 @@ QObject* QtBuilder::insertObject(QObject* pParent, const OUString& rClass, const QObject* QtBuilder::makeObject(QObject* pParent, std::u16string_view sName, const OUString& sID, stringmap& rMap) { + // ignore placeholders + if (sName.empty()) + return nullptr; + QWidget* pParentWidget = qobject_cast(pParent); QObject* pObject = nullptr; -- cgit