diff options
Diffstat (limited to 'vcl/qt5/QtInstanceBuilder.cxx')
-rw-r--r-- | vcl/qt5/QtInstanceBuilder.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/vcl/qt5/QtInstanceBuilder.cxx b/vcl/qt5/QtInstanceBuilder.cxx index a2cac7f825bd..6001128760d6 100644 --- a/vcl/qt5/QtInstanceBuilder.cxx +++ b/vcl/qt5/QtInstanceBuilder.cxx @@ -16,6 +16,7 @@ #include <QtInstanceComboBox.hxx> #include <QtInstanceEntry.hxx> #include <QtInstanceFrame.hxx> +#include <QtInstanceImage.hxx> #include <QtInstanceLabel.hxx> #include <QtInstanceMessageDialog.hxx> #include <QtInstanceRadioButton.hxx> @@ -202,10 +203,11 @@ std::unique_ptr<weld::Spinner> QtInstanceBuilder::weld_spinner(const OUString&) return nullptr; } -std::unique_ptr<weld::Image> QtInstanceBuilder::weld_image(const OUString&) +std::unique_ptr<weld::Image> QtInstanceBuilder::weld_image(const OUString& rId) { - assert(false && "Not implemented yet"); - return nullptr; + QLabel* pLabel = m_xBuilder->get<QLabel>(rId); + std::unique_ptr<weld::Image> xRet(pLabel ? std::make_unique<QtInstanceImage>(pLabel) : nullptr); + return xRet; } std::unique_ptr<weld::Calendar> QtInstanceBuilder::weld_calendar(const OUString&) |