summaryrefslogtreecommitdiff
path: root/qutebrowser/qt/widgets.py
blob: 63e46c359809f72af3b67e5f16a349663cdcf3cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:
# FIXME:qt6 (lint)
# pylint: disable=missing-module-docstring,import-error,wildcard-import,unused-wildcard-import
# flake8: noqa

from qutebrowser.qt import machinery


if machinery.USE_PYSIDE6:
    from PySide6.QtWidgets import *
elif machinery.USE_PYQT5:
    from PyQt5.QtWidgets import *
elif machinery.USE_PYQT6:
    from PyQt6.QtWidgets import *
else:
    raise machinery.UnknownWrapper()

if machinery.IS_QT5:
    del QFileSystemModel  # moved to QtGui in Qt 6