Move Qt view menu actions inside Qt folder#6767
Conversation
|
@lucyleeow definitely agree with moving these actions. Let's also move the |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6767 +/- ##
==========================================
- Coverage 92.40% 92.33% -0.08%
==========================================
Files 613 613
Lines 54738 54747 +9
==========================================
- Hits 50581 50548 -33
- Misses 4157 4199 +42 ☔ View full report in Codecov by Sentry. |
|
@lucyleeow It looks like dropping python 3.8 introduces conflicts |
|
Thanks @Czaki, fixed. Are you interested in reviewing? |
|
CI error due to timeout and I don't think related. |
DragaDoncila
left a comment
There was a problem hiding this comment.
Looks good to me! I really do think these actions don't make sense without qt. Pulled it down and played with it too.
jni
left a comment
There was a problem hiding this comment.
I was just chatting with @DragaDoncila and I am fine with this but I wanted to flag that even though these things don't make sense without Qt now, I think in the future they would make sense regardless:
- when using a different UI such as a web-UI
- when using a virtual UI to compose an image/animation which then gets rendered off-screen and saved as an image
@DragaDoncila points out that at that point we can take ~all of the Qt menu actions and move them in some intermediate "on-canvas" actions to distinguish from model-only actions.
|
Agreed. I think there are other things in the qt folder are just UI specific, not necessarily Qt specific. We don't have a UI but backend agnostic folder atm. |
References and relevant issues
Noticed when working on #6743
Description
The current 'non-qt' actions defined in:
napari/_app_model/actions/_view_actions.pyactually only make sense with a GUI viewer (visibility of axes etc). I have moved these inside:napari/_qt/_qapp_model/qactions/_view.pywith the other Qt view actions.Note I have kept
ViewerToggleActionwhere it is as it is general enough that it could be used with a non-qt viewer, but happy to move if requested.