summaryrefslogtreecommitdiff
path: root/vcl/qt5
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-09-27 20:15:11 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2024-09-28 09:34:49 +0200
commit0d927b52a079e73a0ab8760f583360466628db0b (patch)
treeaaba652116a827bd67cf40942a995a0fcb976a0f /vcl/qt5
parent4dc918239879fe3252d803b62834592c6d1c495b (diff)
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 <m.weghorn@posteo.de>
Diffstat (limited to 'vcl/qt5')
-rw-r--r--vcl/qt5/QtBuilder.cxx4
1 files changed, 4 insertions, 0 deletions
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<QWidget*>(pParent);
QObject* pObject = nullptr;