mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4972 Summary : Add placeholder text to combo box editor
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
#include <QComboBox>
|
||||
#include <QDebug>
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
#include <QListView>
|
||||
#include <QWheelEvent>
|
||||
|
||||
@@ -234,6 +235,8 @@ void PdmUiComboBoxEditor::configureAndUpdateUi(const QString& uiConfigName)
|
||||
if (m_attributes.enableEditableContent)
|
||||
{
|
||||
m_comboBox->setEditable(true);
|
||||
|
||||
m_comboBox->lineEdit()->setPlaceholderText(m_attributes.placeholderText);
|
||||
}
|
||||
|
||||
if (m_attributes.minimumWidth != -1)
|
||||
|
||||
Reference in New Issue
Block a user