Skip to content

Commit

Permalink
Merge pull request #47 from Nodd/pyqtvariants
Browse files Browse the repository at this point in the history
Remove PyQt variant symbols from QtCore
  • Loading branch information
ccordoba12 authored Jul 7, 2016
2 parents abc296f + 75bc123 commit a6750d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions qtpy/QtCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@
from PyQt5.QtCore import pyqtSlot as Slot
from PyQt5.QtCore import pyqtProperty as Property
from PyQt5.QtCore import QT_VERSION_STR as __version__

# Those are imported from `import *`
del pyqtSignal, pyqtSlot, pyqtProperty, QT_VERSION_STR
elif PYQT4:
from PyQt4.QtCore import *
# Those are things we inherited from Spyder that fix crazy crashes under
# some specific situations. (See #34)
from PyQt4.QtCore import QCoreApplication
from PyQt4.QtCore import Qt
from PyQt4.QtCore import pyqtSignal as Signal
Expand All @@ -29,6 +34,9 @@
from PyQt4.QtGui import (QItemSelection, QItemSelectionModel,
QItemSelectionRange, QSortFilterProxyModel)
from PyQt4.QtCore import QT_VERSION_STR as __version__

# Those are imported from `import *`
del pyqtSignal, pyqtSlot, pyqtProperty, QT_VERSION_STR
elif PYSIDE:
from PySide.QtCore import *
from PySide.QtGui import (QItemSelection, QItemSelectionModel,
Expand Down

0 comments on commit a6750d6

Please sign in to comment.