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

SettingsDialog: Fix Qt 6.7 checkbox signal deprecations #1251

Merged

Conversation

RytoEX
Copy link
Member

@RytoEX RytoEX commented Aug 30, 2024

Description

qt/qtbase@3512fb1 (also cherry-picked to qt/qtbase@02ba4b1) deprecated the stateChanged signal of QCheckBoxes in favor of a new checkStateChanged signal. The signals are the same, except that now the enum type is passed explicitly (before the enum was passed as an argument but defined as an int).

The documentation states that it's deprecated for 6.9 but I got the warning now already (dev version appears to be 6.8 currently) and it's also picked to 6.7 and the alternative exists since 6.7 so I'm not 100% what the "real" deprecation version is but 6.7 makes sense.

Motivation and Context

Got a deprecation warning when compiling against Qt dev branch.

See:

How Has This Been Tested?

Tested OS(s):

  • Windows 11: Built and ran against Qt 6.8.0-beta4

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Other Enhancement (anything not applicable to what is listed)

Checklist:

  • I have read the Contributing Guidelines.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • My code is not on master or a release/* branch.
  • The code has been tested.
  • I have included updates to all appropriate documentation.

qt/qtbase@3512fb1 deprecated the
stateChanged signal of QCheckBoxes in favor of a new checkStateChanged
signal. The signals are the same, except that now the enum type is
passed explicitly (before the enum was passed as an argument but defined
as an int).
@RytoEX RytoEX requested a review from tt2468 August 30, 2024 20:09
@RytoEX RytoEX merged commit d9befb9 into obsproject:master Sep 3, 2024
1 check passed
@RytoEX RytoEX deleted the fix-qt67-checkbox-signal-deprecation branch September 3, 2024 18:33
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.

1 participant