0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-10-28 04:13:36 +03:00

Fixed warnings

This commit is contained in:
Константин Макаренков
2025-04-18 10:47:42 +03:00
parent c7e4028637
commit 90cdcb86ea
2 changed files with 6 additions and 7 deletions

View File

@@ -365,15 +365,15 @@ void TextItem::updateLayout()
bool TextItem::isNeedExpandContent() const
{
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 1))
QRegExp rx("$*\\{[^{]*\\}");
#else
bool result = false;
QRegularExpression rx("\\$*\\{[^{]*\\}");
const QString pattern = "\\$*\\{[^{]*\\}";
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 1))
QRegExp rx(pattern);
#else
QRegularExpression rx(pattern);
#endif
result = content().contains(rx) || isContentBackedUp();
return result;
#endif
return content().contains(rx) || isContentBackedUp();
}
QString TextItem::replaceBR(QString text) const { return text.replace("<br/>", "\n"); }