| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Change-Id: I64cdaee5cce0e24d423d0243e5843665872affe1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
| |
Change-Id: Id030c46e56b24df02e8b946768c3deb1e09427a1
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
| |
Other commands, such as configure, do not support it.
Amends 0a00958b083008dea340ef78b0f235ca49b7d22c.
Pick-to: 5.15
Change-Id: I5dbcea6aea60e027a8ff15d10351edbeaefdf338
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
* Updating versions,
* Removing references to 5.x
* Remove unavailable modules for Qt 6.0.0
* Comment unusable tutorials from the documentation
Change-Id: I924953f97406ab8c5c04005a2d42dfbc03fdf7fa
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
| |
Change-Id: I1b5fcad8fd9d434b017189c81abdf32f3f7d9341
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
| |
Change-Id: I6937f40ebf85e1d2d1be53e63b0eebbaa7cbf0fa
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
| |
It is causing problems with libclang on macOS.
Change-Id: I5d55810b3ea3e2eb4028f09d2ce6e97ba93d48a9
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
| |
Change-Id: I61af0ec073341d89d602aa600060a4d9cc4acb19
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The new keyword algorithm did fail again on Windows.
But this time it was a refcounting error that was only visible
in a debug build.
On Windows, it appeared as a negative refcount assertion.
On macOS in debug mode, it was a segfault instead.
The problem was `PyErr_Fetch()`, a function that uses borrowed
references, only. Forgot to respect that, sorry :-(
Task-number: PYSIDE-1305
Change-Id: I164668db8143729fa2fab0be1f61757690e13138
Pick-to: 5.15
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
| |
Amends bfacabede1f9cb7dc1747879b310c4855b65bccf.
Change-Id: I7ed8d5f4f21c39abe9ed39e5c96d8b554fecfde6
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
| |
Add the Q_GADGET/Q_ENUM declarations.
Change-Id: I9f519a655b5c35906b40c79867147a1df39cf0ed
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
Wheel tester keeps failing constantly, so this disables it to allow
enabling ci.
Change-Id: Ia188d92808a2877fa1e972cff5cfb0822fa7392c
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
Qt 6.0.0 CI configuration includes only static version of libClang so
we need to install dynamic libs ourselves to be able to run shiboken6.
Change-Id: I7654f9ac111c0dc2bfb78b3b3f3acb49b159925c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
| |
Change-Id: Icf83ad1a2d4784dd09b4bba16093b2f67c2e77da
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a snake case attribute to type system, complex type entry,
function type entry as well as to function and field modifications.
Add a function definitionNames() to AbstractMetaFunction/Field
returning the names under which the function/field will be registered.
Change the code writing the registration accordingly.
Fixes: PYSIDE-1441
Change-Id: I178390bb80fa25aad9f8a56e99e4cc70064178eb
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
| |
COIN-only failures can then be tagged accordingly.
Change-Id: Ib7f5abaea48eee5feee5b676ba80421c66ffb08e
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
| |
For reasons of consistency and header hygiene.
As a drive by, remove unused argument modification replace-value.
Change-Id: I44d0a244c89f2bf10242544111d23e072df3b480
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There was a years-old qflags test failing on Python 3.
It was blacklisted with the comment
"# Nested exception in Python 3"
This was nonsense: The test was wrong also for Python 2.
It just happened to work, because Python 2 had some weird
errors leaking. The real bug was in missing error handling
in cppgenerator.cpp .
See the main description in the issue.
Change-Id: Ia0f9466640e0eb33f1b8b26178d33f2be0bcb32f
Task-number: PYSIDE-1442
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
| |
Change-Id: Iceb4c929dc56778c3473156bc3d8680a5cf10eba
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
| |
Change-Id: Ie554c42597343d10cf199739d6821b6cb40894bc
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
|
|
|
|
|
|
|
|
|
| |
Use the standard ownership code for QLayout for the new widget.
Fixes: PYSIDE-1432
Pick-to: 5.15
Change-Id: I441e1e72e18cdd3b9b942f6810fd399f266de748
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The meaning of the TypeSystem::Language enumeration value
on the remove elements was unclear; and it is only
ever used with 'all'. Replace it by a boolean value
and simplify the code accordingly.
Adapt the documentation.
Change-Id: I82d082e6d551403642936294a11abbac09d723dd
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Decouple class FieldModification from the base class
Modification since it does not need its attributes
and turn in into a value class using QSharedDataPointer
for consistency with FunctionModification.
Remove some unused code and simplify removed handling.
Change-Id: I9997559acd529bd070df5ff84610fe75c74a71a5
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
| |
<remove> and <access> were deprecated in favor
of attributes on the functions in PySide2.
Similarly for <rename>, but it is still used as a child
of <modify-argument>. Leave this usage in place, but
add parsing of the rename attribute to <modify-argument>.
Change-Id: I8e80ba13a3e4af1df0448bd0de034d242a9fdeb4
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
| |
Change-Id: I08b665ae4feccc9b22b45da999150188228f29e2
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The logic was only partially present, neither removal
of getter/setter nor renaming had any effect.
Rewrite the code to resemble that of AbstractMetaFunction
(adding function applyFieldModifications())
Move some check functions from the generators to
AbstractMetaField/Type.
Add tests in libsample.
Change-Id: Ib29d4e37db51f122b46702cb5d96b13da6d0f224
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
| |
Complements 28aa3c4f6605a6331b12f47e03a9aba4aaefe201.
Change-Id: I2814ce4832a6cf7623abb9e6e290773377795565
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
| |
We are now using whole Qt as a dependency, there is no need for file
listing individual modules.
Change-Id: I3b8a7788d3629e7325a96787c9053db2f0de44b2
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
| |
CppGenerator::writeMethodWrapperPreamble()
Change-Id: I954d1ec8a460fd62979ed605288995a65de2e7f9
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
| |
Change-Id: Iccee5cab96362250997daf39a354ddc7e8ab2909
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
| |
Complements 28aa3c4f6605a6331b12f47e03a9aba4aaefe201.
Change-Id: I8194dccd94dc4a6fbac11a874fd18b60f7aa1533
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Store the list functions (global / class member) as a
QList<QSharedPointer<const AbstractMetaFunction> instead of a raw
pointer list. This makes passing around function lists easier and
solves the memory leaks caused by mixing cloned and unmodified
functions while collecting the overload lists in the generators.
- Change the function signatures accordingly
- Add a qSharedPointerConstCast() for non-const access.
- Restructure the traversing of added functions
in the AbstractMetaBuilder
- Remove some unused typedefs and functions unearthed by
the change
Change-Id: I08a6c5243750e3eb3813bc3f7172899ad2b13e22
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
| |
Change-Id: I29dcee812fe15cdc05403eb9ce7146a1bad85dcf
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
| |
Change-Id: I3933c92905bc83e2d59f368c2c7fd5380408b1c8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
| |
Change-Id: I244198d9ea878c6c4f976cb0080842dd023d2941
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
| |
Currently we can't be sure that python3 is a default
python in all CI nodes.
Change-Id: I58ba7d2bb2dd987d344709c296ee3c5bc5c9c376
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
| |
Change-Id: Ib54260658ecdce99df1ff6a3984f85306c4b81ad
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After the reworking of error messages, the `__init__` function
became visible both via the "class" and as "class.__init__".
The constructor is treated specially because we want to list it first.
Avoid duplicate generation of the constructor by filtering
in "enum_sig.py".
Change-Id: I04c0a47990d6ca8d97a748f7ecfe911f9aec2fe6
Task-number: PYSIDE-1305
Pick-to: 5.15
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
Constructing the strings and populating a hash with function pointers
for each invocation on a snippet is wasteful. Introduce an enum,
populate a constant static hash with it and dispatch the call via
switch.
Change-Id: Ia8e0123fc31802c35b33308edb0fa9edc6add775
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The new keyword algorithm did fail on Windows.
There was a wrong calculation of the number of arguments left
over from the old algorithm. This was only visible on windows,
because it generates slightly different signatures for QtGui.QColor.
Change-Id: I5aee3e7c722c8365f86bf6196ab1fd3cf5bb46ad
Fixes: PYSIDE-1305
Pick-to: 5.15
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There used to be a lot hash/list member variables in the generators,
some of them static.
Refactor this to:
- Use initializer lists.
- Introduce static functions returning a const ref
to const hashes and lists and put them
closer to where they are needed.
- Move m_tpfuncs to cppgenerator.
- Introduce a special struct for protocol function
entries for clarity.
As a drive by. streamline and fix
CppGenerator::writeTypeAsMappingDefinition(),
CppGenerator::writeTypeAsNumberDefinition() to generate nullptr and
reinterpret_cast and not populate hashes with empty strings.
Change-Id: Id1d067dec7769568f56b77ccafca843e01f99b0b
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
Move the TextStream::putChar() functions into the source file
so that it sees the putCharHelper() template.
Change-Id: If5ed7bfc2e1b36f1767e09f8306ddc0a9c7f834f
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
It was removed in
qtdeclarative/5a59cbfee71907c47587a1e3d340d31abfdc01ba.
Change-Id: I94c49dced3decb9089c1f8745468d080e0d0311d
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
| |
It was using the old Qt Quick Controls 1.
Change-Id: Ia1d6a884267fdcd8e3808b08bf1efa12eb62b4dd
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
| |
After qtbase/b4c17476129e07dd3bf52c6aac8a51cf30c2dd3a,
a function returning the QMetaObject * is required.
Task-number: QTBUG-88468
Change-Id: I2d957ff97a2bfa04578873ce098b1e623edf759a
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The modernisation of pysideproperty.cpp creates an error when
using
@Property(str, constant=True)
This could also be provoked before the improved version of
Property by
def getVal(self):
return self.val
variable = Property(str, getVal, constant=True, fset=None)
because the None/NULL - handling was incomplete.
Change-Id: Ib39dd3bdb62ba928164faa465ee3dd743262e245
Fixes: PYSIDE-1426
Pick-to: 5.15
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
| |
It does not accept a ternary operator with QByteArray/const char *
arguments.
Pick-to: 5.15
Change-Id: I02bcb740100c4568ecb262fa6ecf3d466e02c875
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
| |
The cast was no longer generated due to a bug in
Amends3ec934419b1217e2a623e2f91336a8a5628ec5fe.
Change-Id: I27bb554ae24bedf2625654409d8b9b365b47c3c1
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SbkDbg was a macro modeled after QDebug which produced some colored
output on a terminal.
It was (wrongly) used only in one place which caused a MSVC warning
about missing macro parameters.
Replace it by PyErr_WarnEx().
Change-Id: Ie0a134c864d8f434c7acefb22dac715012f36238
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
| |
Use clang builtin-includes.
Pick-to: 5.15
Fixes: PYSIDE-1433
Change-Id: I91c87f8ff764d126acf4bb6aa564c515e61ab0a4
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
|