consistently name site-packages in Shiboken, PySide and pyside-tools
The variable used for the python site-packages is inconsistent.
Instead of "SITE_PACKAGE", we use "PYTHON_SITE_PACKAGES"
everywhere.
This is the pyside-tools part.
By inspecting uiparser.py, in function createLayout, an extra 'margin' element is
added (~line 399) because the layout is child of a QWidget which is not the child
of the main window. The code in that function checks if there are individual
margin elements but fails in the case where there is a single 'margin' element,
that is, when all margins are equal. If at least one margin is different then the
problem doesn't appear.
The includes in pysideuic/widget-plugins needed to be updated.
Probably, there should be some more plugins here, soon.
The existing plugins are deprecated, but they should be correct.
Generate all data as byte literals to work on Python 2 and 3.
Task-number: PYSIDE-328
Change-Id: I8b574bab378459e54b72792c528154ae8135b937
Reviewed-by: Alex Blasche <email address hidden>
Reviewed-by: Alexandru Croitor <email address hidden>
3b0cf7c...
by
Christian Tismer <email address hidden>
Fix a problem with the font attribute
The transition from Qt4 to Qt5 introduced the QtWidgets module.
By simply replacing the QtGui module, things like QFont were lost.
Instead, both QtGui and QtWidgets needed to be supported.
[ChangeLog][pyside2uic][PYSIDE-316] Fixed failing pyside-uic
when parsing font properties.
Task-number: PYSIDE-316
Change-Id: I377c0332d56ea4266e9363cfdb1746d5bf2c2b06
Reviewed-by: Alex Blasche <email address hidden>
Reviewed-by: Christian Tismer <email address hidden>