summaryrefslogtreecommitdiff
path: root/vcl/qt5/QtInstanceComboBox.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-12-04 22:09:12 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2024-12-05 09:27:20 +0100
commite6bf5124be8b898649b6221d23960aacb7602d0e (patch)
treeb54d9fdb65a7caf98a9921fe5fc996b24c6a7de6 /vcl/qt5/QtInstanceComboBox.cxx
parent4aa9b7a0bbcca4352a838962838c3311c44d7442 (diff)
tdf#130857 qt weld: Implement QtInstanceComboBox::set_entry_message_type
Reuse the logic previously implemented in QtInstanceEntry::set_message_type by moving it to a static helper method that takes a QLineEdit* param, and for QtInstanceComboBox::set_entry_message_type, pass the combo box's line edit. Change-Id: I8e81c9473da294d2a8c863ed143d735c30ade2a2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177829 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl/qt5/QtInstanceComboBox.cxx')
-rw-r--r--vcl/qt5/QtInstanceComboBox.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/qt5/QtInstanceComboBox.cxx b/vcl/qt5/QtInstanceComboBox.cxx
index 79563be87659..77e099b7c52a 100644
--- a/vcl/qt5/QtInstanceComboBox.cxx
+++ b/vcl/qt5/QtInstanceComboBox.cxx
@@ -10,6 +10,8 @@
#include <QtInstanceComboBox.hxx>
#include <QtInstanceComboBox.moc>
+#include <QtInstanceEntry.hxx>
+
#include <vcl/qt/QtUtils.hxx>
#include <QtWidgets/QCompleter>
@@ -219,9 +221,9 @@ bool QtInstanceComboBox::has_entry() const
return bEditable;
}
-void QtInstanceComboBox::set_entry_message_type(weld::EntryMessageType)
+void QtInstanceComboBox::set_entry_message_type(weld::EntryMessageType eType)
{
- assert(false && "Not implemented yet");
+ QtInstanceEntry::setMessageType(*m_pComboBox->lineEdit(), eType);
}
void QtInstanceComboBox::set_entry_text(const OUString& rStr)