summaryrefslogtreecommitdiff
path: root/vcl/qt5/QtBuilder.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-11-09 21:23:04 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2024-11-10 12:28:38 +0100
commit7270c44e43a1c681dc55ce25f114b402bd8cf935 (patch)
treeb20afb45f615739885c4056aa2dd60392a840eca /vcl/qt5/QtBuilder.cxx
parentd18d05e2f7bfabef3d0783d4de550bf97b8937fd (diff)
tdf#130857 VclBuilder: Split XML parsing + applying tab child props
Split the existing VclBuilder::handleTabChild into two methods and make the logic not specific to vcl::Window available to other subclasses as well, to make it available for reuse by QtBuilder in the future. In order to do that, move the existing XML parsing logic from the beginning of VclBuilder::handleTabChild to the base class into WidgetBuilder::handleTabChild. Add a new purely virtual method `applyTabChildProperties` to WidgetBuilder and move the corresponding logic for vcl::Window to the new VclBuilder override of this method. Call that method at the end of WidgetBuilder::handleTabChild. For QtBuilder, just add a dummy implementation that triggers an assert initially, which matches what would have happened right at the beginning of the previous WidgetBuilder::handleTabChild implementation without this commit in place. Change-Id: Ie5664bd341182fa51035b547accf9393d65a0702 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176320 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl/qt5/QtBuilder.cxx')
-rw-r--r--vcl/qt5/QtBuilder.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/qt5/QtBuilder.cxx b/vcl/qt5/QtBuilder.cxx
index 347e342fb9ed..68ecf56c4126 100644
--- a/vcl/qt5/QtBuilder.cxx
+++ b/vcl/qt5/QtBuilder.cxx
@@ -477,6 +477,13 @@ void QtBuilder::applyPackingProperties(QObject* pCurrentChild, QObject* pParent,
SAL_WARN("vcl.qt", "QtBuilder::applyPackingProperties not yet implemented for this case");
}
+void QtBuilder::applyTabChildProperties(QObject*, const std::vector<OUString>&,
+ std::vector<vcl::EnumContext::Context>&, stringmap&,
+ stringmap&)
+{
+ assert(false && "Not implemented yet");
+}
+
void QtBuilder::set_response(std::u16string_view sID, short nResponse)
{
QPushButton* pPushButton = get<QPushButton>(sID);