Anki/aqt
Damien Elmes f2b5c8a862 support specifying gfx driver in profile folder
We need to set the OpenGL mode prior to Qt initialisation, but
want to fetch the current driver from the profile manager - and
the profile manager required Qt to already be set up.

Work around this by moving away from QStandardPaths in favour of
a pure Python module. The profile manager now does early setup
using winpaths, and we defer most of the setup until Qt has been
initialised.

Also we install a message handler to catch OpenGL initialisation
errors, and automatically switch to the next driver so users
don't need to manually change the driver.

The --hwaccel option has been removed, as it is no longer necessary.
2018-08-08 23:48:25 +10:00
..
__init__.py support specifying gfx driver in profile folder 2018-08-08 23:48:25 +10:00
about.py use callback when closing windows 2017-08-16 12:48:15 +10:00
addcards.py onReset() already sets note; don't need to do it twice 2018-04-30 15:15:43 +10:00
addons.py Pass new config on to add-on 2018-07-28 09:25:38 +02:00
browser.py support rtl text in sort field in browser 2018-08-08 10:39:54 +10:00
clayout.py fix error when unsetting browser appearance 2018-02-26 11:21:12 +11:00
customstudy.py separate cram into review cards(resched=1) and all cards(resched=0) 2018-07-11 20:35:08 +10:00
deckbrowser.py hack to keep scroll position in deckbrowser 2018-06-12 13:46:15 +10:00
deckchooser.py fix ampersands appearing in deck names 2017-07-28 17:40:26 +10:00
deckconf.py support customizing hard factor 2018-07-11 21:23:22 +10:00
downloader.py fix error on add-on download 2017-08-26 19:55:39 +10:00
dyndeckconf.py add custom steps back to v1 sched options 2018-04-30 16:26:43 +10:00
editcurrent.py select current card in card layout from edit current 2018-07-23 12:54:26 +10:00
editor.py favour urls over images in local file case 2018-08-08 12:46:51 +10:00
errors.py fix error reporting when collection not open 2018-06-21 15:51:32 +10:00
exporting.py fix exporting not working with regular scheduler 2018-08-07 14:27:48 +10:00
fields.py show field numbers for easier positioning 2017-10-05 14:52:05 +10:00
importing.py clean up deck chooser hook on importer close 2018-03-01 14:20:30 +10:00
main.py fixes for mpv focus switching 2018-07-23 13:57:09 +10:00
mediasrv.py Bind mediaserver on 127.0.0.1 instead of localhost 2017-12-24 23:10:07 -08:00
modelchooser.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
models.py drop experimental prewrap mode 2017-10-25 19:18:00 +10:00
overview.py remove study card count cap in v2 sched 2018-07-11 20:03:36 +10:00
preferences.py add experimental scheduler to preferences 2018-04-30 16:26:19 +10:00
profiles.py support specifying gfx driver in profile folder 2018-08-08 23:48:25 +10:00
progress.py work around progress dlg hang at startup on osx 2018-01-14 19:29:56 +10:00
qt.py move back to requiring python 3.6 2018-06-07 11:36:11 +10:00
reviewer.py remove format literals so we can support python 3.5 2018-01-16 16:07:30 +10:00
sound.py work around pops in recording start 2017-12-05 11:07:52 +10:00
stats.py default to desktop in getSaveFile; don't force desktop in stats 2017-09-10 16:42:29 +10:00
studydeck.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
sync.py support dynamic sync url 2018-07-28 18:08:16 +10:00
tagedit.py hack around premature completer deletion 2018-04-18 13:21:10 +10:00
taglimit.py ctrl+d to deselect all in tag picker 2017-10-16 15:31:29 +10:00
toolbar.py new stats shortcut 2018-05-31 13:05:37 +10:00
update.py use requests for http; add progress info back 2017-01-08 19:06:32 +10:00
utils.py don't save window geom when window is fullscreen 2018-08-08 12:30:58 +10:00
webview.py warn and close when media server requests fail 2018-06-29 17:17:13 +10:00
winpaths.py fix winpaths for py3 2018-08-08 23:31:18 +10:00