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:
parent
c68c0d0321
commit
d93ce90a1e
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user