anki/qt/aqt/forms/fields_web.py
Henrik Giesel 76bdfb3899
Add a flag to allow loading the fields dialog in a web view (#1706)
* Load fields_web from fields.py if appropriate flag is set

* Add FieldsPage as entry for new fields view

* Pass mypy

* Fix pylint

* Fix fields_web in Qt5 (dae)

May not be related to the CI error, but required for compatibility
with Qt5.
2022-03-03 22:45:26 +10:00

6 lines
129 B
Python

from aqt.qt import qtmajor
if qtmajor > 5:
from .fields_web_qt6 import *
else:
from .fields_web_qt5 import * # type: ignore