Fix invalid escape sequence

This commit is contained in:
Alex Richardson 2014-03-25 22:17:02 +01:00
parent 16253d7fc3
commit 5977545ee6

View file

@ -56,7 +56,7 @@ RulesWidget::RulesWidget(QWidget* parent)
{
Q_UNUSED(parent);
setupUi(this);
QRegularExpressionValidator* validator = new QRegularExpressionValidator(QRegularExpression("[0-9\-+,xX:]*"), this);
QRegularExpressionValidator* validator = new QRegularExpressionValidator(QRegularExpression("[0-9\\-+,xX:]*"), this);
maxsize->setValidator(validator);
minsize->setValidator(validator);
position->setValidator(validator);