diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-10-04 22:18:17 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-10-05 09:39:56 +0200 |
commit | b54ffcb1337fb76c8c29ce6145c914f80c7f95b5 (patch) | |
tree | e5be40799b1ac488f566eb768e81aafef828c2dc /vcl/qt5 | |
parent | 9bf932c00ba1ee8a2554f1c3c4bbc7ebff8b1995 (diff) |
tdf#130857 VclBuilder: Extract setMnemonicWidget helper + call from base
Instead of iterating over the map of mnemonic widgets
in the VclBuilder ctor, split the logic:
Add a new purely virtual WidgetBuilder::setMnemonicWidget
method to the base class that passes the IDs of a single
pair of label + the corresponding mnemonic widget as params,
and let WidgetBuilder::processUIFile call the method
once for every pair in the map.
Implement that for VclBuilder (by moving the remaining
logic for that previously in the ctor) to the new
override VclBuilder::setMnemonicWidget and add a dummy
implementation for QtBuilder that only triggers a warning for now.
Change-Id: I32c922f91e5e1d06c003e6d26a4342cbb98942e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174509
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl/qt5')
-rw-r--r-- | vcl/qt5/QtBuilder.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/qt5/QtBuilder.cxx b/vcl/qt5/QtBuilder.cxx index 36affcc04718..293399affc08 100644 --- a/vcl/qt5/QtBuilder.cxx +++ b/vcl/qt5/QtBuilder.cxx @@ -249,6 +249,11 @@ void QtBuilder::tweakInsertedChild(QObject* pParent, QObject* pCurrentChild, std } } +void QtBuilder::setMnemonicWidget(const OUString&, const OUString&) +{ + SAL_WARN("vcl.qt", "QtBuilder::setMnemonicWidget not implemented yet"); +} + void QtBuilder::setPriority(QObject*, int) { SAL_WARN("vcl.qt", "Ignoring priority"); } void QtBuilder::setContext(QObject*, std::vector<vcl::EnumContext::Context>&&) |