mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 10:22:15 -05:00
Qt : Replace deprecated function QFontMetrics::width
This commit is contained in:
1 parent
c68c0d0321
commit
d93ce90a1e
1 file changed
+1
-1
@@ -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