mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Fix QRegularExpression pattern
This commit is contained in:
@@ -569,7 +569,7 @@ void ElementPictureFactory::setPainterStyle(const QDomElement &dom, QPainter &pa
|
||||
#pragma message("@TODO remove code for QT 5.14 or later")
|
||||
const QStringList styles = dom.attribute("style").split(";", Qt::SkipEmptyParts);
|
||||
#endif
|
||||
QRegularExpression rx("^(?<name>[a-z-]+): (?<value>[a-z-]+)$");
|
||||
QRegularExpression rx("^(?<name>[a-z-]+):(?<value>[a-z-]+)$");
|
||||
if (!rx.isValid())
|
||||
{
|
||||
qWarning() <<"this is an error in the code"
|
||||
|
||||
Reference in New Issue
Block a user