Skip to content

Commit b7b3d96

Browse files
authored
Merge pull request #148 from QtExcel/qt6beta
Qt6beta
2 parents b1b374a + e67147e commit b7b3d96

File tree

8 files changed

+21
-27
lines changed

8 files changed

+21
-27
lines changed

.github/workflows/android.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/ios.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

WebServer/WebServer.pro

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
TARGET = WebServer
44
TEMPLATE = app
55

6-
equals( QT_MAJOR_VERSION, 6 ) {
7-
QT += core5compat
8-
}
9-
106
QT += core
117
QT += network
128
QT -= gui

WebServer/context.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
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

WebServer/main.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
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"

WebServer/recurse.hpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
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)

WebServer/request.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <QUrlQuery>
99

1010
#if QT_VERSION_MAJOR >= 6 // Qt6 or higher version
11-
#include <QtCore5Compat>
11+
#include <QRegularExpression>
1212
#endif
1313

1414
class Request

WebServer/response.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
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

1410
class Response

0 commit comments

Comments
 (0)