mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +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")
|
#pragma message("@TODO remove code for QT 5.14 or later")
|
||||||
const QStringList styles = dom.attribute("style").split(";", Qt::SkipEmptyParts);
|
const QStringList styles = dom.attribute("style").split(";", Qt::SkipEmptyParts);
|
||||||
#endif
|
#endif
|
||||||
QRegularExpression rx("^(?<name>[a-z-]+): (?<value>[a-z-]+)$");
|
QRegularExpression rx("^(?<name>[a-z-]+):(?<value>[a-z-]+)$");
|
||||||
if (!rx.isValid())
|
if (!rx.isValid())
|
||||||
{
|
{
|
||||||
qWarning() <<"this is an error in the code"
|
qWarning() <<"this is an error in the code"
|
||||||
|
|||||||
Reference in New Issue
Block a user