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

Fix build for Qt >= 6.9 #1028

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michaelweghorn
Copy link

QMutableTouchEvent::from was removed in qtbase commit [1]

commit e9cabe22c1e7ae64e48690b7dada2b83161e6340
Author: Allan Sandfeld Jensen <[email protected]>
Date:   Tue Nov 12 16:25:28 2024 +0100

    QMutable{Touch,SinglePoint}Event: Remove unsafe from() getters

    The getters were used to convert types in an undefined manner.
    No usage of the methods outside of qtbase (Qt and KDE searched)
    has been found, and qtbase is already fixed.

    Change-Id: I9fe77de842a2e0023b011e6eee257d6c6a28a3f5
    Reviewed-by: Allan Sandfeld Jensen <[email protected]>

For Qt >= 6.9, use the API introduced in [2]

commit acc3ef6653c710b509e9321663986910f88ac3b4
Author: Allan Sandfeld Jensen <[email protected]>
Date:   Tue Nov 12 12:34:15 2024 +0100

    Fix ubsan warning of illegal cast and illegal method call

    Avoid casting an event to a type it does not have. Instead use a static accessor class.

    Pick-to: 6.8
    Task-number: QTBUG-99563
    Change-Id: Ideb11779b1510cd10a27fb8bc40bcc8e4849bf15
    Reviewed-by: Marc Mutz <[email protected]>

instead.

[1] https://code.qt.io/cgit/qt/qtbase.git/commit/?id=e9cabe22c1e7ae64e48690b7dada2b83161e6340
[2] https://code.qt.io/cgit/qt/qtbase.git/commit/?id=acc3ef6653c710b509e9321663986910f88ac3b4

QMutableTouchEvent::from was removed in qtbase commit [1]

    commit e9cabe22c1e7ae64e48690b7dada2b83161e6340
    Author: Allan Sandfeld Jensen <[email protected]>
    Date:   Tue Nov 12 16:25:28 2024 +0100

        QMutable{Touch,SinglePoint}Event: Remove unsafe from() getters

        The getters were used to convert types in an undefined manner.
        No usage of the methods outside of qtbase (Qt and KDE searched)
        has been found, and qtbase is already fixed.

        Change-Id: I9fe77de842a2e0023b011e6eee257d6c6a28a3f5
        Reviewed-by: Allan Sandfeld Jensen <[email protected]>

For Qt >= 6.9, use the API introduced in [2]

    commit acc3ef6653c710b509e9321663986910f88ac3b4
    Author: Allan Sandfeld Jensen <[email protected]>
    Date:   Tue Nov 12 12:34:15 2024 +0100

        Fix ubsan warning of illegal cast and illegal method call

        Avoid casting an event to a type it does not have. Instead use a static accessor class.

        Pick-to: 6.8
        Task-number: QTBUG-99563
        Change-Id: Ideb11779b1510cd10a27fb8bc40bcc8e4849bf15
        Reviewed-by: Marc Mutz <[email protected]>

instead.

[1] https://code.qt.io/cgit/qt/qtbase.git/commit/?id=e9cabe22c1e7ae64e48690b7dada2b83161e6340
[2] https://code.qt.io/cgit/qt/qtbase.git/commit/?id=acc3ef6653c710b509e9321663986910f88ac3b4
@CLAassistant
Copy link

CLAassistant commented Dec 20, 2024

CLA assistant check
All committers have signed the CLA.

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