Skip to content

Commit

Permalink
Merge pull request #19 from ccordoba12/fix-qintvalidator
Browse files Browse the repository at this point in the history
Import QIntValidator in QtGui and remove it from QtWidgets
  • Loading branch information
ccordoba12 committed Apr 10, 2016
2 parents 4395a80 + 5485965 commit e7c3683
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions qtpy/QtGui.py
Expand Up @@ -64,7 +64,7 @@
QWhatsThisClickedEvent, QWheelEvent,
QWindowStateChangeEvent, qAlpha, qBlue,
qFuzzyCompare, qGray, qGreen, qIsGray, qRed, qRgb,
qRgba)
qRgba, QIntValidator)
elif os.environ[QT_API] in PYSIDE_API:
from PySide.QtGui import (QAbstractTextDocumentLayout, QActionEvent, QBitmap,
QBrush, QClipboard, QCloseEvent, QColor,
Expand Down Expand Up @@ -103,6 +103,7 @@
QValidator, QVector2D, QVector3D, QVector4D,
QWhatsThisClickedEvent, QWheelEvent,
QWindowStateChangeEvent, qAlpha, qBlue,
qGray, qGreen, qIsGray, qRed, qRgb, qRgba)
qGray, qGreen, qIsGray, qRed, qRgb, qRgba,
QIntValidator)
else:
raise PythonQtError('No Qt bindings could be found')
4 changes: 2 additions & 2 deletions qtpy/QtWidgets.py
Expand Up @@ -56,7 +56,7 @@
QTextTableCellFormat, QTextTableFormat, QTouchEvent, QTransform,
QValidator, QVector2D, QVector3D, QVector4D, QWhatsThisClickedEvent,
QWheelEvent, QWindowStateChangeEvent, qAlpha, qBlue, qFuzzyCompare,
qGray, qGreen, qIsGray, qRed, qRgb, qRgba)
qGray, qGreen, qIsGray, qRed, qRgb, qRgba, QIntValidator)

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

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

0 comments on commit e7c3683

Please sign in to comment.