diff options
Diffstat (limited to 'vcl/qt5/QtInstanceWidget.cxx')
-rw-r--r-- | vcl/qt5/QtInstanceWidget.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/vcl/qt5/QtInstanceWidget.cxx b/vcl/qt5/QtInstanceWidget.cxx index 5f3590bd88d9..6764c83422d2 100644 --- a/vcl/qt5/QtInstanceWidget.cxx +++ b/vcl/qt5/QtInstanceWidget.cxx @@ -8,6 +8,7 @@ */ #include <QtInstanceWidget.hxx> +#include <QtInstanceContainer.hxx> #include <vcl/transfer.hxx> #include <vcl/qt/QtUtils.hxx> @@ -402,7 +403,14 @@ void QtInstanceWidget::thaw() {} void QtInstanceWidget::set_busy_cursor(bool) {} -std::unique_ptr<weld::Container> QtInstanceWidget::weld_parent() const { return nullptr; } +std::unique_ptr<weld::Container> QtInstanceWidget::weld_parent() const +{ + QWidget* pParentWidget = m_pWidget->parentWidget(); + if (!pParentWidget) + return nullptr; + + return std::make_unique<QtInstanceContainer>(pParentWidget); +} void QtInstanceWidget::queue_resize() {} |