File tree Expand file tree Collapse file tree 8 files changed +21
-27
lines changed Expand file tree Collapse file tree 8 files changed +21
-27
lines changed Original file line number Diff line number Diff line change @@ -33,18 +33,18 @@ jobs:
3333 runs-on : ${{ matrix.os }}
3434 strategy :
3535 matrix :
36- os : [ubuntu-latest ]
37- qt_ver : [5.12.6 ]
36+ os : [ubuntu-20.04 ]
37+ qt_ver : [5.12.10 ]
3838 qt_target : [android]
39- qt_arch : [android_x86,android_armv7]
39+ qt_arch : [android_x86,android_armv7,android_arm64_v8a ]
4040 steps :
4141 - name : Install Qt
42- uses : jurplel/install-qt-action@v2
42+ uses : jurplel/install-qt-action@v2.10.0
4343 with :
4444 version : ${{ matrix.qt_ver }}
4545 target : ${{ matrix.qt_target }}
4646 arch : ${{ matrix.qt_arch }}
47- - uses : actions/checkout@v1
47+ - uses : actions/checkout@v2
4848 with :
4949 fetch-depth : 1
5050 - name : build android
Original file line number Diff line number Diff line change @@ -33,16 +33,16 @@ jobs:
3333 runs-on : ${{ matrix.os }}
3434 strategy :
3535 matrix :
36- os : [macos-latest ]
37- qt_ver : [5.12.6 ]
36+ os : [macos-10.15 ]
37+ qt_ver : [5.12.10,5.15.2 ]
3838 qt_target : [ios]
3939 steps :
4040 - name : Install Qt
41- uses : jurplel/install-qt-action@v2
41+ uses : jurplel/install-qt-action@v2.10.0
4242 with :
4343 version : ${{ matrix.qt_ver }}
4444 target : ${{ matrix.qt_target }}
45- - uses : actions/checkout@v1
45+ - uses : actions/checkout@v2
4646 with :
4747 fetch-depth : 1
4848 - name : build ios
Original file line number Diff line number Diff line change 33TARGET = WebServer
44TEMPLATE = app
55
6- equals( QT_MAJOR_VERSION, 6 ) {
7- QT += core5compat
8- }
9-
106QT += core
117QT += network
128QT -= gui
Original file line number Diff line number Diff line change 55#include < QVariant>
66#include < QHash>
77
8- #if QT_VERSION_MAJOR >= 6 // Qt6 or higher version
9- #include < QtCore5Compat>
10- #endif
11-
128#include " request.hpp"
139#include " response.hpp"
1410
Original file line number Diff line number Diff line change 77#include < QVector>
88#include < QList>
99
10- #if QT_VERSION_MAJOR >= 6 // Qt6 or higher version
11- #include < QtCore5Compat>
12- #endif
13-
1410#include " recurse.hpp"
1511
1612#include " xlsxdocument.h"
Original file line number Diff line number Diff line change 1818#include < QVector>
1919
2020#if QT_VERSION_MAJOR >= 6 // Qt6 or higher version
21- #include < QtCore5Compat>
21+ #include < QRegularExpression>
22+ #include < QRegularExpressionMatch>
2223#endif
2324
2425#include < functional>
@@ -439,10 +440,19 @@ namespace Recurse
439440 {
440441 QProcessEnvironment env = QProcessEnvironment::systemEnvironment ();
441442
443+ #if QT_VERSION_MAJOR >= 6 // Qt6 or higher version
444+ QRegularExpression debug_strings (" (recurse|development)" );
445+
446+ QRegularExpressionMatch rem = debug_strings.match (env.value (" DEBUG" ));
447+ if ( rem.hasMatch () )
448+ m_debug = true ;
449+ #else
442450 QRegExp debug_strings (" (recurse|development)" );
443451
444452 if (debug_strings.indexIn (env.value (" DEBUG" )) != -1 )
445453 m_debug = true ;
454+ #endif
455+
446456 }
447457
448458 inline Application::Application (int &argc, char **argv, QObject *parent)
Original file line number Diff line number Diff line change 88#include < QUrlQuery>
99
1010#if QT_VERSION_MAJOR >= 6 // Qt6 or higher version
11- #include < QtCore5Compat >
11+ #include < QRegularExpression >
1212#endif
1313
1414class Request
Original file line number Diff line number Diff line change 55#include < QHash>
66#include < QJsonDocument>
77
8- #if QT_VERSION_MAJOR >= 6 // Qt6 or higher version
9- #include < QtCore5Compat>
10- #endif
11-
128#include < functional>
139
1410class Response
You can’t perform that action at this time.
0 commit comments