Qt5: 'void Q[Plain]TextEdit::setTabStopWidth(int)' is deprecated [-Wdeprecated-declarations]

This commit is contained in:
wmayer
2020-06-11 22:37:39 +02:00
committed by wwmayer
parent 98b1116424
commit aefd5e2358
4 changed files with 16 additions and 0 deletions

View File

@@ -63,7 +63,11 @@ using namespace TechDraw;
MRichTextEdit::MRichTextEdit(QWidget *parent, QString textIn) : QWidget(parent) {
setupUi(this);
m_lastBlockList = 0;
#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0)
f_textedit->setTabStopWidth(40);
#else
f_textedit->setTabStopDistance(40);
#endif
// setDefFontSize(getDefFontSizeNum());
setDefFontSize(TechDrawGui::PreferencesGui::labelFontSizePX());
m_defFont = getDefFont().family();