mirror of
https://github.com/fralx/LimeReport.git
synced 2025-10-02 11:54:59 +03:00
support of Qt6
This commit is contained in:
@@ -360,10 +360,13 @@ void TextItem::updateLayout()
|
||||
|
||||
bool TextItem::isNeedExpandContent() const
|
||||
{
|
||||
bool result = false;
|
||||
#if QT_VERSION < 0x060000
|
||||
QRegExp rx("$*\\{[^{]*\\}");
|
||||
#else
|
||||
QRegularExpression rx("$*\\{[^{]*\\}");
|
||||
QRegularExpression rx("\\$*\\{[^{]*\\}");
|
||||
result = content().contains(rx) || isContentBackedUp();
|
||||
return result;
|
||||
#endif
|
||||
return content().contains(rx) || isContentBackedUp();
|
||||
}
|
||||
|
Reference in New Issue
Block a user