diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-11-10 21:32:10 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-11-11 01:51:28 +0100 |
commit | 5323a78637bceaa0d911a281ad6e680b2af6e62b (patch) | |
tree | 637698971dd420868bcc25c9951b50b4bd159c38 /vcl/qt5 | |
parent | df3483fa74baa0ee73b981df0c106d03dc964a68 (diff) |
tdf#130857 Add WidgetBuilder::createMenu, use to abstract from VCL-specifics
Add a new purely virtual WidgetBuilder::createMenu
and use that in VclBuilder::handleMenu instead
of directly calling VclPtr<PopupMenu>::Create there.
This is in preparation of moving
VclBuilder::handleMenu to WidgetBuilder as well,
to make it reusable for other child classes, in
particular QtBuilder.
Change-Id: Icf3f937ea8e876c8393185e41a95e0f66458ce11
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176360
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
Diffstat (limited to 'vcl/qt5')
-rw-r--r-- | vcl/qt5/QtBuilder.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/qt5/QtBuilder.cxx b/vcl/qt5/QtBuilder.cxx index 002a88fbbf55..1981a8a4c322 100644 --- a/vcl/qt5/QtBuilder.cxx +++ b/vcl/qt5/QtBuilder.cxx @@ -427,6 +427,12 @@ bool QtBuilder::isHorizontalTabControl(QObject* pObject) || ePosition == QTabWidget::TabPosition::South; } +QMenu* QtBuilder::createMenu(const OUString&) +{ + assert(false && "Not implemented yet"); + return nullptr; +} + void QtBuilder::applyAtkProperties(QObject* pObject, const stringmap& rProperties, bool) { if (!pObject || !pObject->isWidgetType()) |