| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
"Qt::WindowFlags flags = {}" was mistakenly changed to
"Qt::WindowFlags flags = Qt::{}"
Pick-to: 6.0
Pick-to: 5.15
Change-Id: Ic160a220db56645f0f554863c0a0d5e92b1307dd
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
Pass the innner message out so that it appears in the qFatal()
message.
Change-Id: Ib38d54de58647037204d76bc7c78fcb3bf82fca5
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The code was moved from QtCore into a separate library, QStateMachine,
within the qtscxml repository.
Re-add tests and fix examples.
Task-number: PYSIDE-904
Task-number: PYSIDE-1482
Change-Id: I977b4835b3345fb342c369e4fdd92646118f7fda
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
Apply the fix created by clang tidy'
-wreadability-convert-member-functions-to-static
warning with some manual correction.
Change-Id: I394bd96881fa25dbcb7a725b79d10395fcbb8676
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
checkers
- Remove unused variables
- Fix potential memory leak in type system parser
- Initialize return values
- Use const ref to avoid copies
- Integer conversions
Change-Id: Ib84236d58849143e9ae6af0079985503b773bca3
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
| |
Change-Id: If8d1b8a6ef4782bf75320454509a4c4a343a52f8
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
| |
The cache can then be used by all generators and
buildAbstractMetaTypeFromTypeEntry() and some dependent functions
can be made static.
Change-Id: Ied8e683f20fe80915d3c81fffb4b39a80c7cd0d5
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
Fix an oversight of 6a1a08cfaf11ad38612e59cb1d56160160504ec8.
Pick-to: 6.0
Change-Id: Iba09b4c631132f7c50ab6b2321b9e93a61c26650
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
Amends d9f344fcef6bec04a787f9ea9f4ea94f15eaa26c.
Pick-to: 6.0
Change-Id: I14a440c8372b5d0e418161c593bf9093f9010665
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
- Remove unused variables
- Remove assignments that do not have any effect
- Fix mixing const/non-const iterators
- Fix for loops, use const ref and/or qAsConst()
Change-Id: I4b52f11030493c440026b194f18ec0151a3ea710
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The signature module is modified again to be more correct when
using the mypy application.
This part splits some changes which occurred when working on
Shiboken.Enum inheritance.
There will be a number of follow-ups:
- signatures for all shiboken types
- test cases for signatures
- signature support for different __feature__ selections
Change-Id: Ifb0d92bf7641f2909ab950e3458b3c3c68c20dad
Pick-to: 6.0
Pick-to: 5.15
Task-number: PYSIDE-510
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
| |
Change-Id: Ief8aa743f47216e728a241a7cd4de360271c5568
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Originally, it was planned to follow a competitor and derive enums
from int objects. But this was abandoned in favor of Python Enums.
We therefore simply leave most code as it is and only insert a
Shiboken::Enum class that accepts an optional integer.
This class is published by shiboken with signature.
Derived classes still have no signature themselves, but they all
inherit from this known class Enum. This is intentional to avoid
creating useless signatures for every derived Enum.
A test was included.
Change-Id: Ifaaea40a4ddf2337e565fb57e6a69b7cc9a6040f
Fixes: PYSIDE-1347
Pick-to: 6.0
Pick-to: 5.15
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
Add command line options --clang-option, --clang-options
to be able to pass options. Allow for a complete replacement
of the built-in compiler support options by specifying '-'
as the first option.
Task-number: PYSIDE-1477
Change-Id: Ibcb107e5d0c4dedb56ab07e83af4203f0f682850
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
| |
- Add enum QJSValue::ObjectConversionBehavior
- Add new classes of Qt3DAnimation
Task-number: PYSIDE-1482
Change-Id: I9330470411e84558626518d23940e3b3f06893a3
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove redeclarations of QPyTextObject::drawObject(),
QPyTextObject::intrinsicSize() which should be taken from
QTextObjectInterface, fixing:
sources/pyside6/PySide6/qpytextobject.h:58:10: error: ‘virtual void QPyTextObject::drawObject(QPainter*, const QRectF&, QTextDocument*, int, const QTextFormat&)’ can be marked override [-Werror=suggest-override]
sources/pyside6/PySide6/qpytextobject.h:60:12: error: ‘virtual QSizeF QPyTextObject::intrinsicSize(QTextDocument*, int, const QTextFormat&)’ can be marked override [-Werror=suggest-override]
cc1plus: all warnings being treated as errors
Change-Id: I904ee7b66b738438f96cdaa8a934a10c4fe7d5a6
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Replace the string map in the CommandLineArguments struct by a
QVariantMap, which can store strings and string lists.
A number of list split and join operations can then
be removed.
Replace the path splitter by QDir::listSeparator().
Task-number: PYSIDE-1477
Change-Id: I70b798e531787d4932605ed5121b523fff5c1110
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
Use a std::optional<CommandLineArguments> as return value.
An error can then be distinguished from an empty map.
Add error handling for failing to open a project file which
was previously ignored.
Task-number: PYSIDE-1477
Change-Id: I69fa5e149818c8186755810c013232aa40d03dd9
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
For key/value pairs specified without space after '=',
the key would be truncated.
Pick-to: 6.0
Pick-to: 5.15
Change-Id: I154b1685ca8aab2f13fb916290cde17bc972afea
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
| |
Task-number: PYSIDE-1477
Change-Id: I9d5734c96824ff40360d6a4197ed8bb69c09cb0b
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
| |
Adapt to 227020b118fa38ada1d8bd579593dae61f6e3881.
Task-number: PYSIDE-904
Task-number: PYSIDE-1482
Change-Id: I9adb78cfe60efd0df73be52132b4ea029986ea18
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit c3fc507d3b2a502273bd92472e1e7aa459c2d13e.
29be13664858cdb7ed7cbc02d6ad496bf57a9bbd moves this handling
to the coin scripts, where it belongs.
Some functionality was already removed by
e44e21f14d8b10b1832c5db5459bf26f287ab6e8.
Task-number: PYSIDE-431
Change-Id: I7474ea17230e484a53019eb7575d3dd9839e9263
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This function should initially not allow deleting Q*Application
with a shiboken.delete() function, but unfortunately some
competitor can do that, so we will as well.
Deletion of qApp needs knowledge about qApp.
We add a hook function that calls the pyside function
`destroyQCoreApplication`.
A special problem was testing interactively.
See the error description for the days long journey :)
Change-Id: I34862425c2cb2cc80d6cafc22d25a867f96f3e0a
Fixes: PYSIDE-1470
Pick-to: 6.0
Pick-to: 5.15
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Debug output is hard to read if there are many objects with the
same type but different address.
This script builds simple names instead of addresses which are easy
to track. See the info at the beginning of the script.
Change-Id: I51e08276d8ffc6d7365ce8620957e64769d7fd8c
Task-number: PYSIDE-79
Task-number: PYSIDE-1470
Pick-to: 6.0
Pick-to: 5.15
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
The libraries were empty on Linux, causing the Designer plugin to not
load due to missing python dependencies.
Task-number: PYSIDE-1455
Change-Id: I4ccc7513bf45396fedc4e019eb425d2a956d0dfa
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
| |
Pick-to: 6.0
Change-Id: I6c1063cf94ec790ad34d8edaee8d524b8fb28ed8
Reviewed-by: Simo Fält <simo.falt@qt.io>
|
|
|
|
|
|
|
|
|
| |
This should be the last patch related the usage of f-strings
from the 'sources' directory.
Pick-to: 6.0
Change-Id: I0288d720dc4930dee088ca3396a66d1b3ba18f76
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PySide 6 suddenly has problems with feature switching during
subtype initialization.
We introduce an enable function that can temporarily suppress
switching. This problem is solved so far.
It is the question whether this will break again in another
constellation. It might be considerable for the future to have
something like Python's PyType_Ready function.
Right now this is too much effort.
Change-Id: If0ed786d4761cf2356f01f7478e4a0d750e88d3c
Fixes: PYSIDE-1463
Pick-to: 6.0
Pick-to: 5.15
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
It cannot entirely be avoided in the case of the scriptable
application example. Generate code checking on the global
variable.
Pick-to: 6.0
Task-number: PYSIDE-487
Change-Id: I12bcd9df37c39f78f1d7edc63e16b3c6a9525011
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the new overload to specify a new "type" parameter
was included, there was no documentation that could be reflected
in our API docs.
This adds a paragraph/example for the overload introduced by
78dad8180d797a647645b74255bfc29c46d7264a
Fixes: PYSIDE-1466
Pick-to: 6.0
Pick-to: 5.15
Change-Id: I843e650f8eb4c32f4c67a31ed5cf9047c4f171f9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
Some utilities from the tests directory were still around,
and are not currently used.
Additionally, there were still some old non active tests with
Python 2 directives; updating them in case we reactivated them.
Pick-to: 6.0
Change-Id: I24aff3396041aa780dab94e70793cb62adea2b3c
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
| |
There were some leftovers from Python 2 still around our code,
this patch only covers the 'print' cases.
Pick-to: 6.0
Change-Id: Icf574be6a40cdb233d3c410c2ec831d2d09bb735
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After simplifying qApp so much, it is no longer necessary to treat
Q*Application special. We now can allow garbage collection for
all objects which simplifies the code quite much.
Then it was easy to shrink the implementation to a single function
`MakeQAppWrapper`, which made the whole "qapp_macro" files no
longer necessary.
This cosmetic change will probably not be back-ported to 5.15 .
Task-number: PYSIDE-1447
Change-Id: I8ae3c5575e62bd7b5d6bac65c25775c712bb178f
Pick-to: 6.0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is an old problem that was solved for Python 2.7.
From Python 3.8 on, the behavior is the same with Python 3.
The fix finally was to extend a Python 2.7 patch to Python 3
as well. See the Jira issue for details.
Other little changes:
This patch includes also a small patch that was mentioned as
necessary for Python 3.9: Python issue 40217. I have seen no
effect of this change yet but applied the patch, anyway.
When searching for a solution of this problem, a lot of time
was spent debugging qapp_macro.cpp, although it was error-free.
As a side effect for better understanding, the variables were
renamed to more common style.
These more independent changes could have got their own check-in,
but the complication of a pick-to and the small code size wasn't
worth the effort.
Change-Id: I7638f1a711315b4678af6b7389265b905c6404a1
Fixes: PYSIDE-1447
Pick-to: 5.15
Pick-to: 6.0
Reviewed-by: Dmitry Shachnev <mitya57@gmail.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
The doc snippets were apparently meant to demonstrate how to
disambiguate overloaded signals by specifying the type in
angular brackets. It no longer applies since the signals
were disambiguated in Qt 6.
Pick-to: 6.0
Change-Id: Ie696a40a07319118555fcbf1b092f761dd07befa
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
| |
Break out of the loop when dirname() returns the identical string.
Fixes: PYSIDE-1460
Pick-to: 6.0 5.15
Change-Id: I31a53946bb302758acb196f47a9ad605edfdd667
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
| |
It is only used for the "target" attribute of
PrimitiveTypeEntry, all other overridden methods
return some Java-ish name.
Make it a settable property and remove the overridden methods.
Pick-to: 6.0
Change-Id: I34dd3c7a2cb3ea4f6968dc8c8d1a70aad9fbf5ed
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
- Rename CPython types to cPy*
- Use them where applicable
Change-Id: Iea05f7d7de5402b9de6d8a614da899b0b67811dc
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
| |
Add the missing overloads of AbstractMetaClass::findClass()
and adapt some types.
Pick-to: 6.0
Change-Id: I65851248b4b6a2e1d4f57fc58ecaf75fb4c00b29
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Separate the generators from ApiExtractor by introducing
a class ApiExtractorResult storing the results of an ApiExtractor run.
Move some query functions there.
With that, some generator functions can already be made static by
passing the ApiExtractorResult and OverloadData can be decoupled from
the generator.
Pick-to: 6.0
Change-Id: Iaba3ebff4aecb722eec4a606423738260983d905
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
| |
Pick-to: 6.0
Change-Id: Iccef8a419cb710ffe0ba7bb2febeb2302fa5ceef
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
| |
Pick-to: 6.0
Change-Id: I53f4b9634568a5626d972e50cc67f4bec8fe92fc
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The list of classes was first sorted topologically, then
alphabetically in the AbstractMetaBuilder and finally again
topologically in the CppGenerator with an additional dependency
QObiect/QMetaObject.
Move the sort functionality taking the QObiect/QMetaObject
dependency into account from the generator to the AbstractMetaBuilder.
Move all sorting functionality to helper sortLists().
The classesTopologicalSorted() helper is then no longer needed by
the generators and can be removed from the ApiExtractor.
Pick-to: 6.0
Change-Id: I03c799118296393bdd0f3de84427b50ab29153b0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
AbstractMetaClass has a list of base class names and a list
of AbstractMetaClass* base instances.
AbstractMetaBuilder populates the instance list from the
names in setupInheritance() and sets a flag.
In a few places in AbstractMetaBuilder, the base class
instances are needed before this has been completed.
For this purpose, the helper
AbstractMetaBuilder::getBaseClasses() is needed.
Replace the set of classes m_setupInheritanceDone
by a flag on AbstractMetaClass. This allows for adding
an assert to AbstractMetaClass::baseClasses() ensuring
setupInheritance() has been called and taking a shortcut
in AbstractMetaBuilder::getBaseClasses().
In addition, classesTopologicalSorted() can use
AbstractMetaClass::baseClasses() instead of searching with
AbstractMetaBuilder::getBaseClasses() and can thus be
made static.
Pick-to: 6.0
Change-Id: Iaf8209b6f6534ad91a96970a56c1e86cce054922
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Search for target lang name if there is a dot present
and do not search for unqualified names if there is a "::"
in the name.
Use iterators to prepare for the use of different container types.
Pick-to: 6.0
Change-Id: I4722cfacb4173c84035038c667ec1aaeb049c713
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
| |
It prevents usage of std::shared_ptr in combination with Qt bindings.
Pick-to: 6.0
Pick-to: 5.15
Task-number: PYSIDE-454
Change-Id: Ie893a37d1482f12692a0198f9058c887cfa823a9
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The function searching for the instantiations of smart pointers
was not checking for the smart pointer type entry,
so, QSharedPointer<int> was hiding std::shared_ptr<int>.
Check for the type entry as well.
Rearrange the code a bit.
Task-numnber: PYSIDE-454
Pick-to: 6.0
Pick-to: 5.15
Change-Id: Ib7a0385ce2c0f8de84b644168b0164f13f3332ad
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
Pick-to: 6.0
Pick-to: 5.15
Task-number: PYSIDE-1449
Change-Id: I47eab35af461ae8b3bd6fffbb6b882bb0c74d186
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change the Graph used for dependency sorting from a graph
using integer node numbers to a template taking the Node value,
relying on operator==() (and its qDebug() operators).
The mapping of node to indexes can then be removed from the client code,
leading to a significant simplification.
As a side effect, this fixes undefined behavior of the overload
sorter in conjunction with reverse binary operators. It was not handling
overloads of the same decisor argument type correctly, leading to
graphs with duplicated node types for them.
Rewrite the toposort test to be data driven.
Change-Id: Idbe896dc81d7272099db6dab3d2673643fc17401
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
overload ids
Insert the missing break; statement into the switch on
overload id.
Fixes: PYSIDE-1448
Pick-to: 6.0
Pick-to: 5.15
Change-Id: I1990c7fbf66e9945c520759b40b8dfb4453a5dd8
Reviewed-by: Christian Tismer <tismer@stackless.com>
|