biolab / orange-canvas-core

Orange Canvas core workflow editor
GNU General Public License v3.0
33 stars 60 forks source link

[FIX] Fix PyQt6 warnings #261

Closed ales-erjavec closed 1 year ago

ales-erjavec commented 1 year ago

Issue

Deprecation warnings when running with PyQt6 e.g.

  /home/ales/devel/orange-canvas-core/orangecanvas/scheme/events.py:95: DeprecationWarning: QEvent constructor is deprecated
    super().__init__(cast(QEvent.Type, etype))

Changes

Change type of event type constants.

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.81 :warning:

Comparison is base (f398e6d) 74.80% compared to head (5ce4e7b) 73.99%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #261 +/- ## ========================================== - Coverage 74.80% 73.99% -0.81% ========================================== Files 97 96 -1 Lines 20696 20569 -127 ========================================== - Hits 15482 15221 -261 - Misses 5214 5348 +134 ``` | [Impacted Files](https://codecov.io/gh/biolab/orange-canvas-core/pull/261?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=biolab) | Coverage Δ | | |---|---|---| | [orangecanvas/scheme/events.py](https://codecov.io/gh/biolab/orange-canvas-core/pull/261?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=biolab#diff-b3JhbmdlY2FudmFzL3NjaGVtZS9ldmVudHMucHk=) | `90.27% <100.00%> (ø)` | | | [orangecanvas/utils/settings.py](https://codecov.io/gh/biolab/orange-canvas-core/pull/261?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=biolab#diff-b3JhbmdlY2FudmFzL3V0aWxzL3NldHRpbmdzLnB5) | `87.87% <100.00%> (ø)` | | ... and [16 files with indirect coverage changes](https://codecov.io/gh/biolab/orange-canvas-core/pull/261/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=biolab) Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=biolab). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=biolab)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.