diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2018-01-30 18:34:11 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2018-02-22 10:43:40 +0000 |
commit | 15c9e08d81177e5afdcd94745201c61206aba774 (patch) | |
tree | d7ead0436e5f5bd7008f3dbe3311519f7fc2ce15 /LICENSE.GPL2 | |
parent | 2004278e04081b445686712a42698480bfce33e1 (diff) |
Reduce number of warnings when running shiboken on a custom module
Running shiboken on a custom XML file (like the scriptableapplication
example) would show tons of warnings about not being able to find
certain types or enums or other things inside Qt modules.
For scriptableapplication that was the case, because the
wrappedclasses.h file would only include the <QMainWindow> header
file, and not the rest of QtWidgets / QtGui headers, which means
that shiboken found types declared in XML files, but could not find
the actual declarations inside the preprocessed header file.
This change adds some additional conditions so that warnings are not
printed when a typesystem file is loaded with the generate="no"
attribute, because no C++ code will actually be generated for types
defined inside such a typesystem file.
Task-number: PYSIDE-587
Change-Id: I1f166483c2f343796e08d3142e5e296c4ee43f27
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'LICENSE.GPL2')
0 files changed, 0 insertions, 0 deletions