Skip to content

PR: Add mappings for deprecated QDropEvent pos and posF methods#445

Merged
ccordoba12 merged 2 commits intospyder-ide:masterfrom
dalthviz:qdrop_event_pos
Aug 17, 2023
Merged

PR: Add mappings for deprecated QDropEvent pos and posF methods#445
ccordoba12 merged 2 commits intospyder-ide:masterfrom
dalthviz:qdrop_event_pos

Conversation

@dalthviz
Copy link
Copy Markdown
Member

@dalthviz dalthviz commented Aug 16, 2023

Mappings for pos and posF for QDropEvent also affect child classes (QDragMoveEvent, QDragEnterEvent). A mapping to have position over Qt5 bindings is done too.

Part of #442

@dalthviz dalthviz added this to the v2.4.0 milestone Aug 16, 2023
@dalthviz dalthviz self-assigned this Aug 16, 2023
@dalthviz dalthviz closed this Aug 16, 2023
@dalthviz dalthviz reopened this Aug 16, 2023
@dalthviz dalthviz requested a review from ccordoba12 August 16, 2023 18:19
@dalthviz dalthviz changed the title [WIP] PR: Add mappings for deprecated QDropEvent pos and posF methods PR: Add mappings for deprecated QDropEvent pos and posF methods Aug 16, 2023
@dalthviz dalthviz marked this pull request as ready for review August 16, 2023 18:20
@ccordoba12
Copy link
Copy Markdown
Member

@dalthviz, I only have one question for you: will this fix the bug reported in spyder-ide/qtconsole#583?

@dalthviz
Copy link
Copy Markdown
Member Author

@ccordoba12 I believe so. With the changes here the pos method is added to the QDragMoveEvent via the addition of the method to the class it inherits from (QDropEvent). Not sure if there are other event classes involved in the QtConsole issue but at least this should prevent the traceback reported at spyder-ide/qtconsole#583 (comment)

Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
@dalthviz dalthviz requested a review from ccordoba12 August 17, 2023 19:13
Copy link
Copy Markdown
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

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

Thanks @dalthviz!

@ccordoba12 ccordoba12 merged commit bada0d7 into spyder-ide:master Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants