Skip to content

Commit

Permalink
Merge pull request #74 from almarklein/stringlistmodel
Browse files Browse the repository at this point in the history
Move QStringListModel to QtCore
  • Loading branch information
ccordoba12 authored Jan 2, 2017
2 parents ef3b32b + 16e965e commit 8ffabfd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions qtpy/QtCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,17 @@
from PyQt4.QtCore import pyqtSlot as Slot
from PyQt4.QtCore import pyqtProperty as Property
from PyQt4.QtGui import (QItemSelection, QItemSelectionModel,
QItemSelectionRange, QSortFilterProxyModel)
QItemSelectionRange, QSortFilterProxyModel,
QStringListModel)
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,
QItemSelectionRange, QSortFilterProxyModel)
QItemSelectionRange, QSortFilterProxyModel,
QStringListModel)
import PySide.QtCore
__version__ = PySide.QtCore.__version__
else:
Expand Down
5 changes: 3 additions & 2 deletions qtpy/QtWidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
QTextTableCellFormat, QTextTableFormat, QTouchEvent, QTransform,
QValidator, QVector2D, QVector3D, QVector4D, QWhatsThisClickedEvent,
QWheelEvent, QWindowStateChangeEvent, qAlpha, qBlue, qFuzzyCompare,
qGray, qGreen, qIsGray, qRed, qRgb, qRgba, QIntValidator)
qGray, qGreen, qIsGray, qRed, qRgb, qRgba, QIntValidator,
QStringListModel)

# These objects belong to QtPrintSupport
del (QAbstractPrintDialog, QPageSetupDialog, QPrintDialog, QPrintEngine,
Expand Down Expand Up @@ -102,7 +103,7 @@
QTextTableCellFormat, QTextTableFormat, QTouchEvent, QTransform,
QValidator, QVector2D, QVector3D, QVector4D, QWhatsThisClickedEvent,
QWheelEvent, QWindowStateChangeEvent, qAlpha, qBlue, qGray, qGreen,
qIsGray, qRed, qRgb, qRgba, QIntValidator)
qIsGray, qRed, qRgb, qRgba, QIntValidator, QStringListModel)

# These objects belong to QtPrintSupport
del (QAbstractPrintDialog, QPageSetupDialog, QPrintDialog, QPrintEngine,
Expand Down

0 comments on commit 8ffabfd

Please sign in to comment.