summaryrefslogtreecommitdiff
path: root/vcl/qt5/QtInstanceBuilder.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/qt5/QtInstanceBuilder.cxx')
-rw-r--r--vcl/qt5/QtInstanceBuilder.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/vcl/qt5/QtInstanceBuilder.cxx b/vcl/qt5/QtInstanceBuilder.cxx
index 83ef9656670d..4b8c9fe2ea87 100644
--- a/vcl/qt5/QtInstanceBuilder.cxx
+++ b/vcl/qt5/QtInstanceBuilder.cxx
@@ -13,6 +13,7 @@
#include <QtBuilder.hxx>
#include <QtInstanceCheckButton.hxx>
+#include <QtInstanceComboBox.hxx>
#include <QtInstanceEntry.hxx>
#include <QtInstanceLabel.hxx>
#include <QtInstanceMessageDialog.hxx>
@@ -230,10 +231,12 @@ QtInstanceBuilder::weld_formatted_spin_button(const OUString&)
return nullptr;
}
-std::unique_ptr<weld::ComboBox> QtInstanceBuilder::weld_combo_box(const OUString&)
+std::unique_ptr<weld::ComboBox> QtInstanceBuilder::weld_combo_box(const OUString& rId)
{
- assert(false && "Not implemented yet");
- return nullptr;
+ QComboBox* pComboBox = m_xBuilder->get<QComboBox>(rId);
+ std::unique_ptr<weld::ComboBox> xRet(pComboBox ? std::make_unique<QtInstanceComboBox>(pComboBox)
+ : nullptr);
+ return xRet;
}
std::unique_ptr<weld::EntryTreeView>