Skip to content

Commit

Permalink
Merge pull request #2767 from flying-sheep/QItemSelection
Browse files Browse the repository at this point in the history
Fix arrayeditor import error in PyQt5
  • Loading branch information
ccordoba12 committed Oct 13, 2015
2 parents d029db4 + b27bf72 commit 1b6b7ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions spyderlib/qt/QtCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions spyderlib/qt/QtGui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions spyderlib/widgets/varexp/arrayeditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b6b7ed

Please sign in to comment.