Skip to content

Commit 6963381

Browse files
update
1 parent dfa4a06 commit 6963381

File tree

6 files changed

+6
-17
lines changed

6 files changed

+6
-17
lines changed

.github/workflows/actions.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ jobs:
103103
sudo apt install -y --no-install-recommends pkg-config qmake6 qt6-base-dev qt6-base-dev-tools qt6-tools-dev-tools qt6-declarative-dev libqt6sql6-mysql libqt6sql6-psql libqt6sql6-odbc libqt6sql6-sqlite libqt6core6 libqt6qml6 libqt6xml6 libpq5 libodbc2 libmongoc-dev libbson-dev liblz4-dev gcc g++ clang make cmake
104104
- name: qmake version
105105
run: |
106+
sudo rm -f /usr/bin/qmake
107+
sudo ln -sf /usr/bin/qmake6 /usr/bin/qmake
106108
qmake -v
107109
- name: configure
108110
run: ./configure --prefix=/usr/local --spec=linux-g++

defaults/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 3.1)
22

33
project(appname CXX)
44

5-
# C++14
6-
set(CMAKE_CXX_STANDARD 14)
5+
# C++20
6+
set(CMAKE_CXX_STANDARD 20)
77
set(CMAKE_CXX_STANDARD_REQUIRED ON)
88
# cxx options
99
if (MSVC)

defaults/appbase.pri

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
lessThan(QT_MAJOR_VERSION, 6) {
2-
CONFIG += c++14
3-
windows:QMAKE_CXXFLAGS += /std:c++14
4-
} else {
5-
CONFIG += c++17
6-
windows:QMAKE_CXXFLAGS += /Zc:__cplusplus /std:c++17
7-
}
1+
CONFIG += c++20
2+
windows:QMAKE_CXXFLAGS += /Zc:__cplusplus /std:c++20
83

94
windows {
105
INCLUDEPATH += $$quote($$(TFDIR)\\include)

include/TreeFrogModel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
#include "thttprequest.h"
1919
#include "tsession.h"
2020

21-
#if QT_VERSION >= 0x050000
2221
#include <QJsonDocument>
2322
#include <QJsonObject>
2423
#include <QJsonArray>
2524
#include <QJsonValue>
26-
#endif

include/TreeFrogView

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
#include "tviewhelper.h"
1111
#include "twebapplication.h"
1212

13-
#if QT_VERSION >= 0x050000
1413
#include <QJsonDocument>
1514
#include <QJsonObject>
1615
#include <QJsonArray>
1716
#include <QJsonValue>
18-
#endif

src/tabstractcontroller.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,9 @@ void TAbstractController::exportVariants(const QVariantMap &map)
4848
if (_exportVars.isEmpty()) {
4949
_exportVars = map;
5050
} else {
51-
#if QT_VERSION >= 0x050f00 // 5.15.0
5251
auto tmp = _exportVars;
5352
_exportVars = map;
5453
_exportVars.insert(tmp);
55-
#else
56-
_exportVars.unite(map);
57-
#endif
5854
}
5955
}
6056

0 commit comments

Comments
 (0)