diff --git a/spyderlib/qt/QtCore.py b/spyderlib/qt/QtCore.py index 416549de7c3..ed12dde5354 100644 --- a/spyderlib/qt/QtCore.py +++ b/spyderlib/qt/QtCore.py @@ -21,6 +21,8 @@ from PyQt4.QtCore import pyqtSlot as Slot # analysis:ignore from PyQt4.QtCore import pyqtProperty as Property # analysis:ignore from PyQt4.QtCore import QT_VERSION_STR as __version__ # analysis:ignore + + from PyQt4.QtGui import QItemSelection, QItemSelectionRange # analysis:ignore else: import PySide.QtCore __version__ = PySide.QtCore.__version__ # analysis:ignore diff --git a/spyderlib/qt/QtGui.py b/spyderlib/qt/QtGui.py index 6760fa3b322..5d29c9409de 100644 --- a/spyderlib/qt/QtGui.py +++ b/spyderlib/qt/QtGui.py @@ -17,6 +17,7 @@ from PyQt4.Qt import QKeySequence, QTextCursor # analysis:ignore from PyQt4.QtGui import * # analysis:ignore QStyleOptionViewItem = QStyleOptionViewItemV4 # analysis:ignore + del QItemSelection, QItemSelectionRange # analysis:ignore else: from PySide.QtGui import * # analysis:ignore QStyleOptionViewItem = QStyleOptionViewItemV4 # analysis:ignore diff --git a/spyderlib/widgets/varexp/arrayeditor.py b/spyderlib/widgets/varexp/arrayeditor.py index 854ccc1a69f..bd8f772c3f1 100644 --- a/spyderlib/widgets/varexp/arrayeditor.py +++ b/spyderlib/widgets/varexp/arrayeditor.py @@ -21,9 +21,9 @@ QMessageBox, QPushButton, QInputDialog, QMenu, QApplication, QKeySequence, QLabel, QComboBox, QSpinBox, QStackedWidget, QWidget, QVBoxLayout, - QAbstractItemDelegate, QItemSelection, - QItemSelectionRange) -from spyderlib.qt.QtCore import (Qt, QModelIndex, QAbstractTableModel, Slot) + QAbstractItemDelegate) +from spyderlib.qt.QtCore import (Qt, QModelIndex, QAbstractTableModel, Slot, + QItemSelection, QItemSelectionRange) from spyderlib.qt.compat import to_qvariant, from_qvariant import spyderlib.utils.icon_manager as ima