Skip to content

Refactor: Fix Qt 6 macro conflicts in Chromium wrapper#8

Merged
rikled merged 4 commits into
Euro-Office:mainfrom
pplupo:update-qt6.11.1
Jun 30, 2026
Merged

Refactor: Fix Qt 6 macro conflicts in Chromium wrapper#8
rikled merged 4 commits into
Euro-Office:mainfrom
pplupo:update-qt6.11.1

Conversation

@pplupo

@pplupo pplupo commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Overview

This PR updates the Chromium Embedded Framework (CEF) wrapper layer to ensure compatibility with Qt 6.11.

Changes

  • Replaced all instances of naked signals: and public slots: with their macro-safe equivalents (Q_SIGNALS: and Q_SLOTS:).
  • Rationale: Modern Qt 6 builds (especially those pulled via package managers like vcpkg) heavily enforce the QT_NO_KEYWORDS flag. The CEF wrapper classes that do not inherit from QObject were triggering compilation failures because the C++ compiler could not resolve the naked Qt macros.

Testing

  • Verified successful compilation under GCC with QT_NO_KEYWORDS defined.

@pplupo pplupo changed the title Port Chromium wrapper to Qt 6.11.1 Refactor: Fix Qt 6 macro conflicts in Chromium wrapper Jun 18, 2026
Signed-off-by: Peter P. Lupo <pplupo@gmail.com>
@pplupo pplupo force-pushed the update-qt6.11.1 branch from 79651dc to 11918ed Compare June 19, 2026 04:28
* Linker Error Resolved: Fixed the final build failure by removing the invalid OfficeUtils target from the editors_helper linker dependencies (as it is already compiled directly into the kernel static library).
* qascprinter.cpp: Fixed a compilation error by replacing an incorrect Qt 6 macro check and migrating the removed QPrinter::pageRect() method to use pageLayout().fullRectPixels().
* gtkprintdialog.cpp: Replaced deprecated setPaperName() and setPaperSize() usages with setPageSize().
* qmultimedia.h: Included the missing <QtGlobal> header to ensure compilation flags evaluate properly.

Signed-off-by: Peter P. Lupo <pplupo@gmail.com>
@pplupo pplupo force-pushed the update-qt6.11.1 branch from 11918ed to 17d585d Compare June 19, 2026 04:31
rikled added 2 commits June 24, 2026 12:37
Signed-off-by: Hendrik Leidinger <hendrik.leidinger@nextcloud.com>
Signed-off-by: Hendrik Leidinger <hendrik.leidinger@nextcloud.com>

@rikled rikled left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already approved in Euro-Office/DesktopEditors#37

@rikled rikled merged commit 6f39508 into Euro-Office:main Jun 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants