| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Remove tests that pass by trial and error.
Change-Id: Ia4a1ca5c25ba4cddc882a29c580edc7c1b1957d1
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Replace the map by two fields of string type for detailed/brief and
add accessors. Make the constructor explicit and fix all occurrences
of implicit conversions.
Change QtDocGenerator::writeFormattedText() to take a QString
with the format instead of an instance of Documentation and add
convencience functions writeFormattedBriefText()
and writeFormattedDetailedText().
Change-Id: I4efaecc8cffeff16873fa3926c3f3b731b96bc5b
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
| |
Encode in the console's code page via wchar_t.
Fixes: PYSIDE-1425
Change-Id: Ideae87361409a61919ea6bf8d5594609dceaa1cb
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
| |
Change-Id: I6dac1f54152fecab7af6831bc3c813a016408aae
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
| |
Unlock in the threads, fixing warnings:
QReadWriteLock: destroying locked QReadWriteLock
QReadWriteLock: destroying locked QReadWriteLock
Pick-to: 6.0 5.15
Change-Id: I484b7947fdcf241fca069c02ecd9e0ff7c20c151
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
| |
Change-Id: If4e1d64af662b1802f2f748121bda5488a82235a
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
The module only uses QXmlStreamReader/Writer.
Change-Id: Icb58251dc800cc7c3cb8827b431ded1744baf639
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change the test data to be a bytearray, fixing:
File "sources/pyside6/tests/util/httpd.py", line 47, in do_GET
self.wfile.write(TestHandler.DATA)
File "/usr/lib/python3.8/socketserver.py", line 799, in write
self._sock.sendall(b)
TypeError: a bytes-like object is required, not 'str'
Pick-to: 6.0
Change-Id: I5a0b5d0f76c4245fc7209d17a6c7f1e664cbc04f
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the snippets_translate tool fails, the build process
continues normally, falling back to use the original C++
snippets.
This problem can be dangerous, since we will not notice if
something is wrong without checking the full log.
This patch make the build process to fail when the tool
doesn't exit normally.
For builds where the documentation generation is skipped,
this change will have no effect.
Complementary to this, the patch includes a new Python file
to determine if the C++ include have an import
counterpart in Python.
Fixes: PYSIDE-1527
Pick-to: 6.0.4
Change-Id: I725b623f60dbc540a6e7834502300c39cd22b5a3
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The example apparently has never worked. Fix it by
using QPyTextObject as a base class and using a different
character (as done in qabstracttextdocumentlayout_test.py).
Modernize the code and use per-class imports.
Task-number: PYSIDE-1112
Change-Id: Iceb6868afe752761820715c1ce68abc77b0a8011
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
Strip the parameter names from the modification signature so that it
matches the C++ type signature.
Change-Id: I8ca4e124e3c579d222d52f949f0d01b44eae92bf
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
| |
As a drive by, fix breakages caused by removed APIs and oversights
of the snake case change and wrap some long lines.
Task-number: PYSIDE-1112
Change-Id: I09acdc7bb6f356964c859111ffd4643a97f5bdf6
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
| |
Task-number: PYSIDE-1112
Change-Id: I8534e911959d6eed2ed6d3f7741e99929ff0125e
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
| |
As a drive-by, add a missing comma.
Amends 9a9f9fd2528c03df4b0e9dde48026a2181e8a410.
Task-number: PYSIDE-1112
Change-Id: I5e7205609b460f56324a8ec193948250e6e38d6b
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
Amends 6389561fd75e80c69d7c83f6a87d988450a2e569.
Task-number: PYSIDE-1540
Task-number: PYSIDE-1503
Change-Id: I0f424dccf4151d53d64f3aef923a32d3c3bf2641
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
- Use per class imports
- Streamline code
Task-number: PYSIDE-1112
Change-Id: I77f00a893b397d1cf73d85bb41038c7c4a73405c
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
| |
In writeInjectDocumentation(), pass class Documentation (including
format) instead of just the string to writeFormattedText()
to prevent it from running through XMLToSphinx.
Pick-to: 6.0 5.15
Change-Id: I6116552fc3ea8f7ddc1cc07d51370f868de97bb3
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
Complements 9a9f9fd2528c03df4b0e9dde48026a2181e8a410.
Task-number: PYSIDE-1112
Change-Id: If239fea81f5db505aaaf1fff2cd6d0b8ad7c98f9
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Use per class imports
- Start in root folder so that large directories (/bin/, Windows)
are easily reachable
- Remove the line edit and navigate by doubleclicking instead
since this is more on line with expectations
- Use a QPlainTextEdit for logging
- Make the log message more informative
- Add icons
Task-number: PYSIDE-1112
Change-Id: I09663c40331df149cc15735f36f2553236759573
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Use per class imports
- Remove string-based connections, fixing some errors introduced
by the snake case renaming
- Add some spacing and indent main
- Use math.pi
Task-number: PYSIDE-1112
Change-Id: I2171fc9eb27f9926f32648a289df404d390ace43
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
| |
Task-number: PYSIDE-1112
Change-Id: Ib60a1b5ac4cecd6b4152c8264e23a0258047a736
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
| |
There was one file forgotten when adding dependencies.
This was recognized when back-porting the original change
to 5.15 .
Task-number: PYSIDE-1536
Change-Id: I5c396e8de47c716acb9e301d60930296bd530a64
Pick-to: 6.0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add functions taking x,y data in the form of numpy-vectors
(as common for matplotlib, etc) for:
QPainter::drawPoints()
QXYSeries::append(), QXYSeries::replace()
They are added as separate functions instead of overloads
since there is a restriction in that numpy arrays
cause an error:
FIXME Subscripted generics cannot be used with class and instance checks
when passed to other type check macros.
Task-number: PYSIDE-1540
Task-number: PYSIDE-1503
Change-Id: Ie1521ce19127bb0641fbdb4f7320a8707682724e
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add utility functions for converting numpy vectors containing
x,y data to list of QPoint, QPointF, respectively along with
helpers for type checking and initialization.
Task-number: PYSIDE-1540
Task-number: PYSIDE-1503
Change-Id: Idde5084434a36ec31eb87bf65dec3d637cff728b
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
| |
In order to be able to use numpy in PySide6 modules
besides libshiboken, move the numpy detection into the
build scripts and pass it as a CMake variable.
Task-number: PYSIDE-1540
Task-number: PYSIDE-1503
Change-Id: Ib30fdbab83904878286b7eaae1674ffba0f2febd
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Result tuples do not (yet) get information from XML.
Instead, they fetch their info solely from the embedded
signature strings and information encoded in mapping.py .
When a variable is determined as a result variable, it is
removed from the arg list and normally appended to the
return tuple.
It turned out that a special rule is needed:
A variable that comes first in the variable list should
also be first in the result tuple.
This heuristics should be replaced by more introspection.
Right now, this suffices as a working fix.
Fixes: PYSIDE-1409
Pick-to: 6.0
Pick-to: 5.15
Change-Id: Ib65682439e2f678380e0f58a42a36506d0766ddf
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move the extraction of the brief text from the
QtDocGenerator to the QtDocParser and store the brief text
in class Documentation, allowing for later extraction.
The handling for qdoc and doxygen should then be consistent.
Pick-to: 5.15
Change-Id: I86b37ae1c4a92f96508a03f5dbcfb6dc56014382
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
| |
If a size can be obtained, add a call to reserve()
to avoid reallocations for large lists.
Task-number: PYSIDE-1540
Task-number: PYSIDE-1503
Change-Id: I95a8a6aa02641d9f174dbc3b63740a05d1d95a45
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
Add QGuiApplication and let the painter paint on image, fixing:
QPainter::setBrush: Painter not active
Change-Id: I9f381e5b61c1798edaeb998be73f763aa4f2aff5
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The use of __builtins__ is an old wart of Python.
In some contexts this is a dict, in others it is a module.
PyPy treats it always as a module.
Instead of using the implicitly existing __builtins__
dict, we now import the builtins module which never fails.
Task-number: PYSIDE-535
Change-Id: I71d14a69051b177273be2ce542694221bf61add2
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
| |
Pick-to: 6.0
Change-Id: Ifcbfacfa7a081e094919a0eb37dc616041c84917
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
| |
Pick-to: 6.0
Change-Id: I9c1cb964e1b9a05f9940382d58ecdf820865d532
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adding the option to display a screenshot on the
example gallery.
First, the script will look for an image with the same name
as the example, otherwise it will just get the first
in alphabetical order.
Pick-to: 6.0
Fixes: PYSIDE-1490
Change-Id: Ia0328c84206a3d66854197abe5ecad8d1d28abc5
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
| |
Replacing the old raw HTML for online docs.
The HTML version of the menu will remain for qthelp.
Pick-to: 6.0
Task-number: PYSIDE-1112
Change-Id: I335b25c561ab9d45fd041d24ec607b8d603612c1
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
| |
qtbase/0e69349f6f8e9445877ea5b2105973115ad79cf7 introduced a
multi-line emit statement, causing snippets_translate to fail.
Add a warning message which then shows:
snippets_translate: Warning "emit renderedImage(result, resultSize," does not match function call
Change-Id: Id27770eab1e60d7828e7d742e63d1de2d530ad02
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
| |
Task-number: PYSIDE-1540
Task-number: PYSIDE-1503
Change-Id: If83d14ef228a137012c73414e5b6e5e0deb7ffbc
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
| |
Pick-to: 6.0
Change-Id: I1c9fe1006cb936c88c860482ba93d0a68554a350
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
Add the correct check function for a numpy PyArrayObject.
Task-number: PYSIDE-1540
Task-number: PYSIDE-1503
Change-Id: If7b25808edb65553fc0ee54ddf1532fe2d3c2272
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Port qtbase/0e69349f6f8e9445877ea5b2105973115ad79cf7:
The example refines the image by running a number of passes
with increasing number of iterations, which is not really
visible to the user. Set an informational text string on
the generated image which provides this information
along with the elapsed time.
The idea is to do the same to the corresponding
Qt for Python example to have some sort of speed comparison
for number crunching.
Add a command line option for the number of passes.
Make the window a bit larger to accommodate the
information.
Task-number: PYSIDE-1112
Change-Id: I9313f860947386123166f794b80b541bc057be2c
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
I add a widget showing a 2D gaussian with 2 inputs to adjust mu and sigma
Pick-to: 6.0
Task-number: PYSIDE-841
Change-Id: I602b07943ebeb007332bc77c4372ef5a1db20422
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
This is an adaptation of my code available on
https://github.com/dridk/QJsonModel. Due to its success, it may be good
to add it into the official documentation.
Pick-to: 6.0
Task-number: PYSIDE-841
Change-Id: I5b9acddb684ba27233efa53e6b0e04291aaba46a
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
A widget where user can draw on a canvas with different color.
It is possible to save and load the canvas into a PNG file.
This example teaches the user how to use QPainter outside the paintEvent
using a QPixmap.
Pick-to: 6.0
Task-number: PYSIDE-841
Change-Id: I8bbab68193894f4f5a6e101fa23fc65e6cb30864
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
This widget allows to download a file and show a progress bar.
Unlike other example on the internet, bytes are read from the
readyRead() method and not from finished(). This makes possible to
download large file without consuming memory.
Pick-to: 6.0
Task-number: PYSIDE-841
Change-Id: Ic314ef1fbc299be6c3636fcb502b3c532d713cfd
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
Reorder the overloads so that the QPolygon overload is checked first
before the costly sequence type check of the QPoint list.
Speeds up the example from 1800ms to 80ms.
Fixes: PYSIDE-1540
Pick-to: 6.0 5.15
Change-Id: I108b0e98c82540703ee80345026ecdc3b55dfd4e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Registering static fields invokes converters, which
can cause crashes for uninitialized types (see also
2ac1870053370e017567ae53e62cd1155a01c88f). To solve
this problem, move the static field initialization
to the end of the module initialization function
to ensure all converters are available.
Pick-to: 5.15 6.0
Fixes: PYSIDE-1529
Change-Id: If40c6faf049077db8afcdee2069f4441c21beaa4
Reviewed-by: Renato Araujo Oliveira Filho <renato.araujo@kdab.com>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
| |
Change-Id: I52f92326fdd903078cce5b6408d96d742bfa42b8
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
Since Qt6's QPair uses it underneath,
we require to have a declaration so we are able to transform
from and to Python.
Fixes: PYSIDE-1544
Pick-to: 6.0
Change-Id: I9cc753cbbe0b352382996e896c00faff9bc0f819
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
| |
This completes b69d8899b1c592aa9a6cdfa43da3137af3fa16de, separating
the modification classes.
Change-Id: I7a8436facbce8a4ef8872b3867b21d62ae07fab7
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
| |
Recreate the watermarks with Python code. Use the standard Qt for
Python logo and remove the C++ logos.
Task-number: PYSIDE-1112
Change-Id: I29679f7f6f4e245d7d29099648fea9678e6706f8
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The classwizard created some outdated C++ header and source which is
not useful for Qt for Python.
Rewrite it to generate a Python class and add a special page allowing
for specifying properties and signals of QObjects. Add an overwrite
check and a 'Launch' checkbox to the conclusion page.
Use QFormLayout instead QGridLayout for the pages.
Task-number: PYSIDE-1112
Change-Id: Ice158553571e30ea069ceda8873bf165dc704afc
Reviewed-by: Christian Tismer <tismer@stackless.com>
|