Skip to content

Commit

Permalink
Merge pull request #148 from QtExcel/qt6beta
Browse files Browse the repository at this point in the history
Qt6beta
  • Loading branch information
j2doll authored Mar 13, 2021
2 parents b1b374a + e67147e commit b7b3d96
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 27 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
qt_ver: [5.12.6]
os: [ubuntu-20.04]
qt_ver: [5.12.10]
qt_target: [android]
qt_arch: [android_x86,android_armv7]
qt_arch: [android_x86,android_armv7,android_arm64_v8a]
steps:
- name: Install Qt
uses: jurplel/install-qt-action@v2
uses: jurplel/install-qt-action@v2.10.0
with:
version: ${{ matrix.qt_ver }}
target: ${{ matrix.qt_target }}
arch: ${{ matrix.qt_arch }}
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: build android
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
qt_ver: [5.12.6]
os: [macos-10.15]
qt_ver: [5.12.10,5.15.2]
qt_target: [ios]
steps:
- name: Install Qt
uses: jurplel/install-qt-action@v2
uses: jurplel/install-qt-action@v2.10.0
with:
version: ${{ matrix.qt_ver }}
target: ${{ matrix.qt_target }}
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: build ios
Expand Down
4 changes: 0 additions & 4 deletions WebServer/WebServer.pro
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
TARGET = WebServer
TEMPLATE = app

equals( QT_MAJOR_VERSION, 6 ) {
QT += core5compat
}

QT += core
QT += network
QT -= gui
Expand Down
4 changes: 0 additions & 4 deletions WebServer/context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
#include <QVariant>
#include <QHash>

#if QT_VERSION_MAJOR >= 6 // Qt6 or higher version
#include <QtCore5Compat>
#endif

#include "request.hpp"
#include "response.hpp"

Expand Down
4 changes: 0 additions & 4 deletions WebServer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
#include <QVector>
#include <QList>

#if QT_VERSION_MAJOR >= 6 // Qt6 or higher version
#include <QtCore5Compat>
#endif

#include "recurse.hpp"

#include "xlsxdocument.h"
Expand Down
12 changes: 11 additions & 1 deletion WebServer/recurse.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
#include <QVector>

#if QT_VERSION_MAJOR >= 6 // Qt6 or higher version
#include <QtCore5Compat>
#include <QRegularExpression>
#include <QRegularExpressionMatch>
#endif

#include <functional>
Expand Down Expand Up @@ -439,10 +440,19 @@ namespace Recurse
{
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();

#if QT_VERSION_MAJOR >= 6 // Qt6 or higher version
QRegularExpression debug_strings("(recurse|development)");

QRegularExpressionMatch rem = debug_strings.match(env.value("DEBUG"));
if ( rem.hasMatch() )
m_debug = true;
#else
QRegExp debug_strings("(recurse|development)");

if (debug_strings.indexIn(env.value("DEBUG")) != -1)
m_debug = true;
#endif

}

inline Application::Application(int &argc, char **argv, QObject *parent)
Expand Down
2 changes: 1 addition & 1 deletion WebServer/request.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <QUrlQuery>

#if QT_VERSION_MAJOR >= 6 // Qt6 or higher version
#include <QtCore5Compat>
#include <QRegularExpression>
#endif

class Request
Expand Down
4 changes: 0 additions & 4 deletions WebServer/response.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
#include <QHash>
#include <QJsonDocument>

#if QT_VERSION_MAJOR >= 6 // Qt6 or higher version
#include <QtCore5Compat>
#endif

#include <functional>

class Response
Expand Down

0 comments on commit b7b3d96

Please sign in to comment.