Added Qt dependent macro for QString::SkipEmptyParts/Qt::SkipEmptyParts

This commit is contained in:
thunder2 2025-07-19 23:17:29 +02:00
parent f38b72e7a3
commit e2e1a431ff
11 changed files with 23 additions and 17 deletions

View file

@ -640,7 +640,7 @@ void MessageWidget::fill(const std::string &msgId)
ui.trans_ToText->setText(to_text);
int recipientsCount = ui.trans_ToText->toPlainText().split(QRegExp("(\\s|\\n|\\r)+"), QString::SkipEmptyParts).count();
int recipientsCount = ui.trans_ToText->toPlainText().split(QRegExp("(\\s|\\n|\\r)+"), QtSkipEmptyParts).count();
ui.expandButton->setText( QString::number(recipientsCount)+ " " + tr("more"));
if (recipientsCount >=20) {