Mercurial > hg > syntilista
comparison src/main.cpp @ 284:ea0513940991
Change QRegExp to QRegularExpression.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 09 May 2023 11:11:10 +0300 |
parents | f12718986d31 |
children | 6f5d2028b882 |
comparison
equal
deleted
inserted
replaced
283:958451fcd85a | 284:ea0513940991 |
---|---|
8 // | 8 // |
9 #include <QApplication> | 9 #include <QApplication> |
10 #include <QMessageBox> | 10 #include <QMessageBox> |
11 #include <QSettings> | 11 #include <QSettings> |
12 #include <QStandardPaths> | 12 #include <QStandardPaths> |
13 #include <QRegularExpression> | |
13 #include "main.h" | 14 #include "main.h" |
14 #include "ui_mainwindow.h" | 15 #include "ui_mainwindow.h" |
15 #include "ui_aboutwindow.h" | 16 #include "ui_aboutwindow.h" |
16 #include "runguard.h" | 17 #include "runguard.h" |
17 #include "util.h" | 18 #include "util.h" |
276 | 277 |
277 if (settings.uiFullScreen) | 278 if (settings.uiFullScreen) |
278 showFullScreen(); | 279 showFullScreen(); |
279 | 280 |
280 // Validator for amount input | 281 // Validator for amount input |
281 QRegExp vregex("\\d{0,4}[,.]\\d{0,2}|\\d{0,4}"); | 282 QRegularExpression vregex("\\d{0,4}[,.]\\d{0,2}|\\d{0,4}"); |
282 ui->edit_Amount->setValidator(new QRegExpValidator(vregex, this)); | 283 ui->edit_Amount->setValidator(new QRegularExpressionValidator(vregex, this)); |
283 | 284 |
284 // Setup person list filtering and sorting | 285 // Setup person list filtering and sorting |
285 peopleSortIndex = 1; | 286 peopleSortIndex = 1; |
286 peopleSortOrder = Qt::AscendingOrder; | 287 peopleSortOrder = Qt::AscendingOrder; |
287 peopleFilter = ""; | 288 peopleFilter = ""; |