# HG changeset patch # User Matti Hamalainen # Date 1683619870 -10800 # Node ID ea05139409911f420867f290922ec4b18a06e24b # Parent 958451fcd85ab90ffae318639607b80576593a3a Change QRegExp to QRegularExpression. diff -r 958451fcd85a -r ea0513940991 src/main.cpp --- a/src/main.cpp Tue May 09 11:03:00 2023 +0300 +++ b/src/main.cpp Tue May 09 11:11:10 2023 +0300 @@ -10,6 +10,7 @@ #include #include #include +#include #include "main.h" #include "ui_mainwindow.h" #include "ui_aboutwindow.h" @@ -278,8 +279,8 @@ showFullScreen(); // Validator for amount input - QRegExp vregex("\\d{0,4}[,.]\\d{0,2}|\\d{0,4}"); - ui->edit_Amount->setValidator(new QRegExpValidator(vregex, this)); + QRegularExpression vregex("\\d{0,4}[,.]\\d{0,2}|\\d{0,4}"); + ui->edit_Amount->setValidator(new QRegularExpressionValidator(vregex, this)); // Setup person list filtering and sorting peopleSortIndex = 1;