app: remove _set_rendering_options()
[git-cola.git] / qtpy / QtPdf.py
blob3a6796ca2b219ccb71fd84965016777634990fab
1 # -----------------------------------------------------------------------------
2 # Copyright © 2009- The Spyder Development Team
4 # Licensed under the terms of the MIT License
5 # (see LICENSE.txt for details)
6 # -----------------------------------------------------------------------------
8 """Provides QtPdf classes and functions."""
10 from . import (
11 PYQT5,
12 PYQT6,
13 PYSIDE2,
14 PYSIDE6,
15 QtBindingMissingModuleError,
18 if PYQT5:
19 raise QtBindingMissingModuleError(name='QtPdf')
20 elif PYQT6:
21 # Available with version >=6.4.0
22 from PyQt6.QtPdf import *
23 elif PYSIDE2:
24 raise QtBindingMissingModuleError(name='QtPdf')
25 elif PYSIDE6:
26 # Available with version >=6.4.0
27 from PySide6.QtPdf import *