mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-30 20:36:36 -05:00
Replace depracated QTextEdit::setTabStopWidth by QTextEdit::setTabStopDistance
This commit is contained in:
parent
6652d7f4f8
commit
484d220b04
1 changed files with 4 additions and 0 deletions
|
|
@ -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)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue