Qt5: [skip ci] 'void QTextEdit::setTabStopWidth(int)' is deprecated [-Wdeprecated-declarations]
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user