-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[ENH] canvas: Open dropped ows files #2885
Conversation
f0d0bdf
to
9107dd9
Compare
Codecov Report
@@ Coverage Diff @@
## master #2885 +/- ##
=======================================
Coverage 82.12% 82.12%
=======================================
Files 329 329
Lines 56258 56258
=======================================
Hits 46201 46201
Misses 10057 10057 |
@ales-erjavec, is this a proper way to do it? I considered handling drops in CanvasMainWindows, but then the whole window would be the drop target. |
You can:
|
Thanks, I like the event filter way. I'll update the code accordingly. |
9107dd9
to
67f4fda
Compare
I ended up using the same code as in 2.7 :) I did not use the OSX_NSURL_toLocalFile workaround as it is not needed for Qt5 (we started using it because PyQt4 never got official support for "permanent" file urls on macos). Since all our installers ship with PyQt5, this should be ok. |
Works for me on Linux. One issue though: If I already have something open and chose "Cancel" in the save changes dialog, parts of the dialog remain until (parts of) the canvas is redrawn. |
67f4fda
to
6c2ff74
Compare
I did not manage to reproduce this |
Issue
When an ows file is dropped on canvas window, nothing happens.
Description of changes
When an ows file is dropped on canvas window, it is opened.
Includes