# -*- coding: utf-8 -*-
#
# Copyright © 2014-2015 Colin Duquesnoy
# Copyright © 2011 Pierre Raybaut
#
# Licensed under the terms of the MIT License
# (see LICENSE.txt for details)

"""
Provides QtGui classes and functions.
.. warning:: All PyQt4/PySide gui classes are exposed but when you use
    PyQt5, those classes are not available. Therefore, you should treat/use
    this package as if it was ``PyQt5.QtGui`` module.
"""

import os
from qtpy import QT_API
from qtpy import PYQT5_API
from qtpy import PYQT4_API
from qtpy import PYSIDE_API
from qtpy import PythonQtError


if os.environ[QT_API] in PYQT5_API:
    from PyQt5.QtGui import *                                 # analysis:ignore
elif os.environ[QT_API] in PYQT4_API:
    from PyQt4.QtGui import *                                 # analysis:ignore
elif os.environ[QT_API] in PYSIDE_API:
    from PySide.QtGui import *                                # analysis:ignore
else:
    raise PythonQtError('No Qt bindings could be found')


@@ -432,16 +432,17 @@
 port os%0A
+%0A
 from qtp
@@ -641,58 +641,8 @@
 rt *
-                                 # analysis:ignore
 %0Aeli
@@ -693,27 +693,24 @@
 PyQt4.Qt
-Gui
  import 
 *       
@@ -705,59 +705,113 @@
 ort 
-*                                 # analysis:ignore
+QKeySequence, QTextCursor%0A    from PyQt4.QtGui import *%0A    QStyleOptionViewItem = QStyleOptionViewItemV4
 %0Aeli
@@ -880,57 +880,58 @@
 rt *
-                                # analysis:ignore
+%0A    QStyleOptionViewItem = QStyleOptionViewItemV4
 %0Aels
@@ -990,9 +990,8 @@
 found')%0A
-%0A

Add missing imports from Spyder shim