From 484d220b044733e013d9cb5f686d34f5a176554e Mon Sep 17 00:00:00 2001 From: thunder2 Date: Mon, 21 Jul 2025 18:45:50 +0200 Subject: [PATCH] Replace depracated QTextEdit::setTabStopWidth by QTextEdit::setTabStopDistance --- retroshare-gui/src/util/RichTextEdit.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/retroshare-gui/src/util/RichTextEdit.cpp b/retroshare-gui/src/util/RichTextEdit.cpp index 8233058f9..acf9a8c76 100644 --- a/retroshare-gui/src/util/RichTextEdit.cpp +++ b/retroshare-gui/src/util/RichTextEdit.cpp @@ -45,7 +45,11 @@ static const uint32_t MAX_ALLOWED_GXS_MESSAGE_SIZE = 199000; RichTextEdit::RichTextEdit(QWidget *parent) : QWidget(parent) { setupUi(this); m_lastBlockList = 0; +#if QT_VERSION >= QT_VERSION_CHECK (5, 10, 0) + f_textedit->setTabStopDistance(40); +#else f_textedit->setTabStopWidth(40); +#endif connect(f_textedit, SIGNAL(currentCharFormatChanged(QTextCharFormat)), this, SLOT(slotCurrentCharFormatChanged(QTextCharFormat)));