- a few issues to work out still, and editor changes not done yet
- for communication between webengine and python code, we set window
.location to 'http://anki/<something>' - the leading http is
necessary for qt to call the link handler, which was introduced
in qt5.5
- the designer files now use a promoted qobject to create instances
of AnkiWebView
- we use the css zoom property to alter webengine font size based on
system dpi
- prefs and addons folder stored in new location (at least for now)
the canFocus/canCopy separate variables was silly, as we ended up
with text that could be copied from the context menu but not with
a shortcut key. also we default to allowing focus now, since that's
the more sensible default. fixes copy issues with card info dialog and
some addons
- setting current tab index triggered the function, so we don't need to call
it manually
- no need to set index after adding card either, as it defaults to the most
recently added tab
Like this styling can be applied to id (or rather, the effect of styling to it can be seen in the layout editor.)
Also removed what looks like an extra '<center></center>'. That is added three lines later.