Reduce compiler warnings: replace qAsConst with std::as_const and update event localPos() to position()

Replaced deprecated qAsConst usages in built modules and updated QMouseEvent::localPos() to position() per Qt6 deprecation guidance.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
torsten committed 2026-07-14 22:44:14 +02:00
1 parent 46e673f660
commit 8af436f09a
281 files changed
+7102 -5490

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
#!/usr/bin/env bash
set -euo pipefail
# Final build script for migrated project
# Usage:
# ./final-migration/build.sh [--release] [--qt-root PATH]
# Run inside the Docker container created by ./app/run_docker.sh or on a host with Qt6 installed.
BUILD_TYPE=Release
QT_ROOT=${QT_ROOT:-/opt/Qt/6.8.3/gcc_64}
JOBS=5
while [[ $# -gt 0 ]]; do
case "$1" in
--release) BUILD_TYPE=Release; shift;;
--debug) BUILD_TYPE=Debug; shift;;
--qt-root) QT_ROOT="$2"; shift 2;;
--jobs) JOBS="$2"; shift 2;;
-j*) JOBS="${1#-j}"; shift;;
*) echo "Unknown arg: $1"; exit 1;;
esac
done
echo "Using Qt root: ${QT_ROOT}"
mkdir -p build
cmake -S . -B build -G Ninja -DCMAKE_PREFIX_PATH="${QT_ROOT}" -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
cmake --build build -- -j${JOBS}
# Optional: install into target prefix (uncomment when ready)
# sudo cmake --install build --prefix /shd/CTC
echo "Build complete. Artifacts are in ./build"