mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
AppFwk : Do not use deprecated feature in Qt 5.15
This commit is contained in:
parent
21fd4f74b5
commit
7b1c780a77
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user