Qt5: [skip ci] 'void QTextEdit::setTabStopWidth(int)' is deprecated [-Wdeprecated-declarations]

This commit is contained in:
wmayer
2020-06-12 13:56:57 +02:00
parent 8b9fb78228
commit c8be528f37
2 changed files with 6 additions and 3 deletions

View File

@@ -71,9 +71,6 @@
</item>
<item row="4" column="1" rowspan="3" colspan="2">
<widget class="QTextEdit" name="textEdit1">
<property name="tabStopWidth">
<number>40</number>
</property>
</widget>
</item>
<item row="0" column="2">

View File

@@ -61,6 +61,12 @@ DlgSettingsEditorImp::DlgSettingsEditorImp( QWidget* parent )
ui->setupUi(this);
ui->EnableFolding->hide(); // Switch off until we have an editor with folding
#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0)
ui->textEdit1->setTabStopWidth(40);
#else
ui->textEdit1->setTabStopDistance(40.0);
#endif
d = new DlgSettingsEditorP();
QColor col;
col = Qt::black;