VirtualBox

Ignore:
Timestamp:
Mar 1, 2022 11:34:06 AM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: qt6: The result argument of QWidget::nativeEvent changes from a long to qintptr pointer in 6. bugref:9898

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp

    r93382 r94033  
    103103
    104104    /** Redirects all the native events to parent. */
     105#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
     106    bool nativeEventFilter(const QByteArray &eventType, void *pMessage, qintptr * /* pResult */)
     107#else
    105108    bool nativeEventFilter(const QByteArray &eventType, void *pMessage, long * /* pResult */)
     109#endif
    106110    {
    107111        return m_pParent->nativeEventPreprocessor(eventType, pMessage);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIHostComboEditor.cpp

    r94013 r94033  
    620620}
    621621
     622#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
     623bool UIHostComboEditorPrivate::nativeEvent(const QByteArray &eventType, void *pMessage, qintptr *pResult)
     624#else
    622625bool UIHostComboEditorPrivate::nativeEvent(const QByteArray &eventType, void *pMessage, long *pResult)
     626#endif
    623627{
    624628# if defined(VBOX_WS_MAC)
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIHostComboEditor.h

    r93990 r94033  
    191191
    192192    /** Handles native events. */
     193#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
     194    virtual bool nativeEvent(const QByteArray &eventType, void *pMessage, qintptr *pResult) RT_OVERRIDE;
     195#else
    193196    virtual bool nativeEvent(const QByteArray &eventType, void *pMessage, long *pResult) RT_OVERRIDE;
     197#endif
    194198
    195199    /** Handles key-press @a pEvent. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette