Skip to content

Feat: Define QT_NO_KEYWORDS, allowing us to use Qt in more places - #8638

Merged
sithlord48 merged 2 commits into
masterfrom
QTNOKEYWORDS
Jun 2, 2025
Merged

Feat: Define QT_NO_KEYWORDS, allowing us to use Qt in more places#8638
sithlord48 merged 2 commits into
masterfrom
QTNOKEYWORDS

Conversation

@sithlord48

@sithlord48 sithlord48 commented May 31, 2025

Copy link
Copy Markdown
Member
  • Defines QT_NO_KEYWORDS preventing issues w/ signals being defined by both Qt and GTK ( used in libportal)

    • must use Q_SIGNALS, Q_SLOTS and Q_EMIT in place of signals, slots and emit macros
  • Fixed include order in AppUtilUnix causing X11 to be pulled in before our local code causing issue when building with Qt

  • Tested locally by added QString to the Constants.h.in file

  • Document in wiki the requirement for Q_SIGNALS Q_SLOTS and Q_EMIT

@sithlord48
sithlord48 requested a review from nbolton May 31, 2025 15:41
@sithlord48 sithlord48 mentioned this pull request May 31, 2025
@sithlord48 sithlord48 self-assigned this May 31, 2025
@sithlord48 sithlord48 added the 🗒️ task Doesn't directly add new functionality or fix bugs in the program label May 31, 2025
@sithlord48 sithlord48 added this to the v1.23.0 milestone May 31, 2025
@sithlord48 sithlord48 mentioned this pull request May 31, 2025
4 tasks
Comment thread src/lib/deskflow/unix/AppUtilUnix.cpp
Comment thread src/lib/deskflow/unix/AppUtilUnix.cpp Outdated
Comment thread src/lib/deskflow/unix/AppUtilUnix.cpp Outdated
Comment thread src/lib/deskflow/unix/AppUtilUnix.cpp Outdated
@sithlord48

sithlord48 commented Jun 2, 2025

Copy link
Copy Markdown
Member Author

Edit: Added a commit to remove those includes.

@sithlord48
sithlord48 enabled auto-merge (rebase) June 2, 2025 20:52
must use Q_SIGNALS, Q_SLOTS and Q_EMIT in place of signals, slots and emit macros
@sithlord48
sithlord48 merged commit d01a023 into master Jun 2, 2025
@sithlord48
sithlord48 deleted the QTNOKEYWORDS branch June 2, 2025 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🗒️ task Doesn't directly add new functionality or fix bugs in the program

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants