AppFwk : Do not use deprecated feature in Qt 5.15

This commit is contained in:
Magne Sjaastad 2021-11-16 09:32:53 +01:00
parent 21fd4f74b5
commit 7b1c780a77

View File

@ -254,7 +254,7 @@ void PdmUiComboBoxEditor::configureAndUpdateUi( const QString& uiConfigName )
}
else if ( m_attributes.minimumContentsLength > 0 )
{
m_comboBox->setSizeAdjustPolicy( QComboBox::AdjustToMinimumContentsLength );
m_comboBox->setSizeAdjustPolicy( QComboBox::AdjustToContents );
m_comboBox->setMinimumContentsLength( m_attributes.minimumContentsLength );
// Make sure the popup adjusts to the content even if the widget itself doesn't
QFont font = m_comboBox->view()->font();
@ -359,7 +359,7 @@ void PdmUiComboBoxEditor::configureAndUpdateUi( const QString& uiConfigName )
}
else
{
toolButtonIcon = stepUpIcon();
toolButtonIcon = stepDownIcon();
}
if ( m_comboBox->count() == 0 || m_comboBox->currentIndex() >= m_comboBox->count() - 1 )
{