mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Qt : Replace deprecated function QFontMetrics::width
This commit is contained in:
@@ -410,7 +410,7 @@ void RimPlotDataFilterItem::defineEditorAttribute( const caf::PdmFieldHandle* fi
|
||||
|
||||
QFontMetrics fm = QFontMetrics( QFont() );
|
||||
|
||||
myAttr->maximumWidth = fm.width( "XXXX" );
|
||||
myAttr->maximumWidth = fm.boundingRect( "XXXX" ).width();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user