dae/ankiqt — pull request #3 by aaronharsh (2012-01-16 05:20:31+00:00)
Title: Drag and drop for ankiqt

Hi Damien,

Here's the drag and drop support I promised. There are a couple libanki changes to go along with it.

I think I mentioned in email that I originally tried to use HTML5 drag and drop, but ran into what appears to be broken support for it in PyQT's version of Webkit (or at least the version on my machine). So I added jquery-ui to js.py in libanki, and things seem to be working nicely.

The UI works well for me, but I'm surprised to see how many version-specific bugs I ran into (the Webkit issue, and I had to work around a drag-and-drop bug that was introduced in jQuery 1.5 and fixed in 1.51), so I wouldn't be surprised if there were potential issues if a user's Python installation has a slightly different version of QtWebKit (if that's even possible). I'm curious to hear if it works on your system.

Let me know if you'd like any changes to the code or the UI.