From 7b04be789ec61e9f9e1f1ab201f297423325ba53 Mon Sep 17 00:00:00 2001 From: twi-devel Date: Mon, 24 Aug 2026 20:30:44 +0200 Subject: [PATCH] Update MIGRATION_STATUS.md: QDesktopWidget migration complete MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Document QDesktopWidget → QScreen API migration completion - Added commit bf0b1a3d (AVM and TetraIF modules) - Updated main repo commit 55942b02 (submodule reference) - All QApplication::desktop() usage migrated to QGuiApplication::primaryScreen() Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Entire-Checkpoint: 01M0TGM1ESM0JDMCKMMGZQF1GJ --- MIGRATION_STATUS.md | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/MIGRATION_STATUS.md b/MIGRATION_STATUS.md index 29794b64b..6cd768af5 100644 --- a/MIGRATION_STATUS.md +++ b/MIGRATION_STATUS.md @@ -1,9 +1,34 @@ # Qt5/C++11 → Qt6/C++17 Migration Status -## Session 017: QRegExp Migration Complete (2026-08-22) +## Session 017: QDesktopWidget Migration Complete (2026-08-22) ### ✅ Completed Work +#### QDesktopWidget → QScreen Migration Complete +Migrated all QApplication::desktop() usage to QGuiApplication::primaryScreen() for Qt6 compatibility: + +**Files Updated:** +1. **Lts/Plugins/AudioVideoManagement/Gui/MobileVideoSystem/avm_mvs_video_team_gui_plugin.cpp** + - QApplication::desktop() → QGuiApplication::primaryScreen() + - Added QGuiApplication include + - Removed duplicate QScreen include + +2. **TetraIF/LogView/LogViewTelegramDialog.cpp** + - QApplication::desktop() → QGuiApplication::primaryScreen() + - Added QGuiApplication include + +**API Changes Applied:** +- `QApplication::desktop()` → `QGuiApplication::primaryScreen()` +- `QDesktopWidget::screenGeometry()` → `QScreen::geometry()` or `availableGeometry()` +- `QDesktopWidget::logicalDpiX()` → `QScreen::logicalDotsPerInchX()` + +**Previously Migrated (Commit 793c9f8b):** +- Lts/Plugins/Styles/Light/rme_light_style.cpp +- Lts/Plugins/Styles/Dark/rme_dark_style.cpp + +This completes the QDesktopWidget API migration across all modules. +QApplication::desktop() is deprecated in Qt5 and removed in Qt6. + #### QRegExp → QRegularExpression Migration Complete Migrated all QRegExp usage to QRegularExpression for Qt6 compatibility across the codebase: @@ -107,6 +132,12 @@ Fixed all compilation errors preventing BUILD_RTI=OFF configuration from buildin ### 📝 Commits #### qt-migration-legatus (submodule) +- **Commit bf0b1a3d**: QDesktopWidget → QScreen: Complete migration in AVM and TetraIF modules + - avm_mvs_video_team_gui_plugin.cpp: QApplication::desktop() → QGuiApplication::primaryScreen() + - LogViewTelegramDialog.cpp: QApplication::desktop() → QGuiApplication::primaryScreen() + - Added QGuiApplication includes where needed + - This completes QDesktopWidget API migration across all modules + - **Commit f15f342a**: QRegExp → QRegularExpression migration complete - Migrated all QRegExp usage to QRegularExpression - Updated symbol_dictionary_impl.cpp, mil2525d_to_mil2525c.cpp @@ -122,6 +153,8 @@ Fixed all compilation errors preventing BUILD_RTI=OFF configuration from buildin - RTI stub headers for OFF builds #### qt6-migration-pipeline (main repo) +- **Commit 55942b02**: Update submodule qt-migration-legatus to bf0b1a3d + - QDesktopWidget → QScreen migration complete (AVM, TetraIF) - **Commit a7da810a**: Update MIGRATION_STATUS.md with QRegExp migration progress - **Commit 30a0f889**: Update qt-migration-legatus submodule to f15f342a