Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preparations for Qt6 upgrade #294

Merged
merged 8 commits into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
path: docs/html/

buildLinux:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [preBuild, checks]
env:
BACKTRACE_SYMBOL_TOKEN: ${{ secrets.BACKTRACE_SYMBOL_TOKEN }}
Expand Down Expand Up @@ -183,13 +183,13 @@ jobs:

steps:
- name: Install Qt
uses: jurplel/install-qt-action@v3
uses: jurplel/install-qt-action@v4
with:
version: ${{ env.qt_version }}
arch: win64_msvc2019_64
cache: true
- name: Install Qt debug info
uses: jurplel/install-qt-action@v3
uses: jurplel/install-qt-action@v4
with:
version: ${{ env.qt_version }}
arch: win64_msvc2019_64
Expand Down Expand Up @@ -280,7 +280,7 @@ jobs:

steps:
- name: Install Qt
uses: jurplel/install-qt-action@v3
uses: jurplel/install-qt-action@v4
with:
version: ${{ env.qt_version }}
cache: true
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cmake_minimum_required(VERSION 3.26)

if(APPLE)
set(CMAKE_OSX_ARCHITECTURES "x86_64")
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.13")
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15")
endif()

set(SWIFT_LANGUAGES C CXX)
Expand Down
1 change: 0 additions & 1 deletion cmake/pch_config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ set(SWIFT_MISC_PCH
<QJsonValue>
<QJsonValueRef>
<QLatin1Char>
<QLatin1Literal>
<QLatin1String>
<QList>
<QLoggingCategory>
Expand Down
2 changes: 1 addition & 1 deletion cmake/tools.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1

macro(get_version_number)
execute_process(COMMAND python scripts/utils.py --version
execute_process(COMMAND python3 scripts/utils.py --version
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
OUTPUT_VARIABLE SWIFT_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE)
Expand Down
2 changes: 1 addition & 1 deletion installer/installbuilder/vcredist-x64.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Error Code: ${program_exit_code}
Check if another version was already installed and if not, try to run the installer manually from
${installdir}\vcredist\

The installation will now continue, but swift might not work properly. If this is the case, raise an issue at http://tiny.cc/swift-issue with the error code, you received.</text>
The installation will now continue, but swift might not work properly. If this is the case, raise an issue at https://github.com/swift-project/pilotclient/issues with the error code, you received.</text>
<ruleList>
<!-- No error -->
<compareValues>
Expand Down
2 changes: 1 addition & 1 deletion installer/installbuilder/vcredist-x86.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Error Code: ${program_exit_code}
Check if another version was already installed and if not, try to run the installer manually from
${installdir}\vcredist\

The installation will now continue, but swift might not work properly. If this is the case, raise an issue at http://tiny.cc/swift-issue with the error code, you received.</text>
The installation will now continue, but swift might not work properly. If this is the case, raise an issue at https://github.com/swift-project/pilotclient/issues with the error code, you received.</text>
<ruleList>
<!-- No error -->
<compareValues>
Expand Down
12 changes: 6 additions & 6 deletions samples/blackmisc/samplesperformance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ namespace BlackSample

timer.start();
situations.convertFromJson(json);
out << "Convert 100,000 aircraft situations from JSON: " << timer.elapsed() << "ms" << endl
out << "Convert 100,000 aircraft situations from JSON: " << timer.elapsed() << "ms" << Qt::endl
<< Qt::endl;

timer.start();
Expand All @@ -272,7 +272,7 @@ namespace BlackSample

timer.start();
models.convertFromJson(json);
out << "Convert 10,000 aircraft models from JSON (naive): " << timer.elapsed() << "ms" << endl
out << "Convert 10,000 aircraft models from JSON (naive): " << timer.elapsed() << "ms" << Qt::endl
<< Qt::endl;

timer.start();
Expand All @@ -281,7 +281,7 @@ namespace BlackSample

timer.start();
models.convertFromMemoizedJson(json);
out << "Convert 10,000 aircraft models from JSON (memoize): " << timer.elapsed() << "ms" << endl
out << "Convert 10,000 aircraft models from JSON (memoize): " << timer.elapsed() << "ms" << Qt::endl
<< Qt::endl;

return EXIT_SUCCESS;
Expand Down Expand Up @@ -383,7 +383,7 @@ namespace BlackSample
auto c = s.contains(upperRegex);
Q_UNUSED(c);
}
out << "Check 100,000 strings for containing uppercase letter: (regex) " << timer.elapsed() << "ms" << endl
out << "Check 100,000 strings for containing uppercase letter: (regex) " << timer.elapsed() << "ms" << Qt::endl
<< Qt::endl;

timer.start();
Expand All @@ -400,7 +400,7 @@ namespace BlackSample
auto i = s.indexOf(upperRegex);
Q_UNUSED(i);
}
out << "Check 100,000 strings for index of first uppercase letter: (regex) " << timer.elapsed() << "ms" << endl
out << "Check 100,000 strings for index of first uppercase letter: (regex) " << timer.elapsed() << "ms" << Qt::endl
<< Qt::endl;

auto temp = strings;
Expand All @@ -417,7 +417,7 @@ namespace BlackSample
{
s.remove(upperRegex);
}
out << "Remove from 100,000 strings all uppercase letters: (regex) " << timer.elapsed() << "ms" << endl
out << "Remove from 100,000 strings all uppercase letters: (regex) " << timer.elapsed() << "ms" << Qt::endl
<< Qt::endl;

timer.start();
Expand Down
4 changes: 2 additions & 2 deletions samples/weatherdata/weatherdataprinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void CWeatherDataPrinter::fetchAndPrintWeatherData(const CCoordinateGeodetic &po
void CWeatherDataPrinter::printWeatherData(const CWeatherGrid &weatherGrid)
{
QTextStream qtout(stdout);
qtout << "... finished." << endl;
qtout << "... finished." << Qt::endl;
qtout << weatherGrid.getDescription();
qtout << endl;
qtout << Qt::endl;
}
14 changes: 0 additions & 14 deletions scripts/README.iwyu

This file was deleted.

43 changes: 0 additions & 43 deletions scripts/create_iwyu_mappings.py

This file was deleted.

Loading
Loading