Skip to content

Commit

Permalink
fix pyuic wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Mar 15, 2016
1 parent 96c60fd commit 4089ed8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmake/PyQtMacros.cmake
Expand Up @@ -47,7 +47,7 @@ MACRO(PYQT_WRAP_UI outfiles )
ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
COMMAND ${PYUIC_WRAPPER} "${PYUIC_PROGRAM}" "${PYUIC_WRAPPER_PATH}" "${QGIS_OUTPUT_DIRECTORY}/python" "${PYTHON_EXECUTABLE}" ${infile} -o ${outfile}
MAIN_DEPENDENCY ${infile}
DEPENDS pygui pycore
DEPENDS pygui pycore pyqtcompat
)
SET(${outfiles} ${${outfiles}} ${outfile})
ENDFOREACH(it)
Expand Down
5 changes: 5 additions & 0 deletions python/PyQt/PyQt4/uic/pyuic.py
Expand Up @@ -23,4 +23,9 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'


import sip
for api in ["QDate", "QDateTime", "QString", "QTextStream", "QTime", "QUrl", "QVariant"]:
sip.setapi(api, 2)

from PyQt4.uic import pyuic
6 changes: 0 additions & 6 deletions scripts/pyuic-wrapper.py
@@ -1,7 +1 @@
try:
import sip
sip.setapi("QVariant", 2)
except:
pass

import PyQt.uic.pyuic

0 comments on commit 4089ed8

Please sign in to comment.