mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Remove use of QFontMetrics width
This commit is contained in:
@@ -211,7 +211,7 @@ RiuTabbedTextDialog::RiuTabbedTextDialog( RiuTabbedTextProvider* textProvider, Q
|
||||
textEdit->setFont( font );
|
||||
textEdit->setContextMenuPolicy( Qt::NoContextMenu );
|
||||
|
||||
auto fontWidth = QFontMetrics( font ).width( "m" );
|
||||
auto fontWidth = QFontMetrics( font ).boundingRect( "m" ).width();
|
||||
textEdit->setTabStopWidth( fontWidth * 4 );
|
||||
|
||||
m_tabWidget->addTab( textEdit, tabTitle );
|
||||
|
||||
Reference in New Issue
Block a user