mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-14 20:33:05 +02:00
Totest QRegularExpression ok?
This commit is contained in:
parent
c1e93fc442
commit
ad0df66ab1
@ -430,10 +430,10 @@ void TitleBlockTemplate::parseColumns(const QString &cols_string) {
|
|||||||
QRegularExpression abs_col_size_format,rel_col_size_format;
|
QRegularExpression abs_col_size_format,rel_col_size_format;
|
||||||
abs_col_size_format.setPattern("^([0-9]+)(?:px)?$");
|
abs_col_size_format.setPattern("^([0-9]+)(?:px)?$");
|
||||||
abs_col_size_format.setPatternOptions(QRegularExpression::CaseInsensitiveOption);
|
abs_col_size_format.setPatternOptions(QRegularExpression::CaseInsensitiveOption);
|
||||||
//QRegExp rel_col_size_format("^([rt])([0-9]+)%$", Qt::CaseInsensitive);
|
|
||||||
rel_col_size_format.setPattern("^([rt])([0-9]+)%$");
|
rel_col_size_format.setPattern("^([rt])([0-9]+)%$");
|
||||||
rel_col_size_format.setPatternOptions(QRegularExpression::CaseInsensitiveOption);
|
rel_col_size_format.setPatternOptions(QRegularExpression::CaseInsensitiveOption);
|
||||||
bool conv_ok;
|
bool conv_ok;
|
||||||
|
qDebug() <<"is QRegularExpression ok?";
|
||||||
|
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) // ### Qt 6: remove
|
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) // ### Qt 6: remove
|
||||||
QStringList cols_descriptions =
|
QStringList cols_descriptions =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user