mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5409 Remove deprecated QPlainTextEdit::setTabStopWidth call on Qt >= 5.10
Need to still use it for 5.9 and older.
This commit is contained in:
parent
8211727b79
commit
d86de5e8ff
@ -212,7 +212,11 @@ RiuTabbedTextDialog::RiuTabbedTextDialog( RiuTabbedTextProvider* textProvider, Q
|
||||
textEdit->setContextMenuPolicy( Qt::NoContextMenu );
|
||||
|
||||
auto fontWidth = QFontMetrics( font ).boundingRect( "m" ).width();
|
||||
#if QT_VERSION >= QT_VERSION_CHECK( 5, 10, 0 )
|
||||
textEdit->setTabStopDistance( fontWidth * 4 );
|
||||
#else
|
||||
textEdit->setTabStopWidth( fontWidth * 4 );
|
||||
#endif
|
||||
|
||||
m_tabWidget->addTab( textEdit, tabTitle );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user