tdf#130857 qt weld: Evaluate button box orientation

Set orientation to vertical if that's specified
in the .ui file instead of using the default of
horizontal.

This is used by the button box on the right hand side
of the "Tools" -> "XML Filter Settings" dialog.

Change-Id: I64460037649dcd24897c7a5d7148430836702edc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178064
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
This commit is contained in:
Michael Weghorn 2024-12-07 22:08:14 +01:00
parent 77f4c8c78a
commit 4d91b67e1f

View file

@ -164,7 +164,10 @@ QObject* QtBuilder::makeObject(QObject* pParent, std::u16string_view sName, std:
}
else
{
pObject = new QDialogButtonBox(pParentWidget);
QDialogButtonBox* pButtonBox = new QDialogButtonBox(pParentWidget);
if (hasOrientationVertical(rMap))
pButtonBox->setOrientation(Qt::Vertical);
pObject = pButtonBox;
}
}
else if (sName == u"GtkButton")