Skip to content

Commit ee92bd3

Browse files
committed
doc: remove double white space
Pick-to: 6.6 Change-Id: I68b835bb5fa00d35fe5406deee2acc83c7bac7cb Reviewed-by: Adrian Herrmann <[email protected]>
1 parent 5935b0f commit ee92bd3

25 files changed

+64
-64
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,19 @@ are found by the QtNetwork module.
6161
## Building Additional Options
6262

6363
On Linux and macOS you can use the option `--standalone` to embed Qt libraries
64-
into the PySide6 package. The option does not affect Windows, because it is
64+
into the PySide6 package. The option does not affect Windows, because it is
6565
used implicitly, i.e. all relevant DLLs have to be copied into the PySide6
6666
package anyway, because there is no proper rpath support on the platform.
6767

6868
You can use the option `--rpath=/path/to/lib/path` to specify which rpath
69-
values should be embedded into the PySide6 modules and shared libraries. This
69+
values should be embedded into the PySide6 modules and shared libraries. This
7070
overrides the automatically generated values when the option is not specified.
7171

7272
You can use the option `--qt-conf-prefix` to pass a path relative to the
7373
PySide6 installed package, which will be embedded into an auto-generated
74-
`qt.conf` registered in the Qt resource system. This path will serve as the
74+
`qt.conf` registered in the Qt resource system. This path will serve as the
7575
PrefixPath for QLibraryInfo, thus allowing to choose where Qt plugins should be
76-
loaded from. This option overrides the usual prefix chosen by `--standalone`
76+
loaded from. This option overrides the usual prefix chosen by `--standalone`
7777
option, or when building on Windows.
7878

7979
To temporarily disable registration of the internal `qt.conf` file, a new
@@ -209,7 +209,7 @@ make sure to specify the following things:
209209
a system interpreter, or a virtualenv one for example)
210210

211211
Once that is done, just re-run CMake, so that it picks up the new environment
212-
values. If needed, all other cache variables defined by the project files can
212+
values. If needed, all other cache variables defined by the project files can
213213
be re-adjusted (for example FORCE_LIMITED_API).
214214

215215
## Command line CMake case

README.pyside6.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@ and [join our community](https://wiki.qt.io/Qt_for_Python#Community)!
8989
### Licensing
9090

9191
PySide6 is available under both Open Source (LGPLv3/GPLv2) and commercial
92-
license. Using PyPi is the recommended installation source, because the
93-
content of the wheels is valid for both cases. For more information, refer to
92+
license. Using PyPi is the recommended installation source, because the
93+
content of the wheels is valid for both cases. For more information, refer to
9494
the [Qt Licensing page](https://www.qt.io/licensing/).

README.pyside6_addons.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ and [join our community](https://wiki.qt.io/Qt_for_Python#Community)!
6060
### Licensing
6161

6262
PySide6 is available under both Open Source (LGPLv3/GPLv2) and commercial
63-
license. Using PyPi is the recommended installation source, because the
64-
content of the wheels is valid for both cases. For more information, refer to
63+
license. Using PyPi is the recommended installation source, because the
64+
content of the wheels is valid for both cases. For more information, refer to
6565
the [Qt Licensing page](https://www.qt.io/licensing/).

README.pyside6_essentials.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ and [join our community](https://wiki.qt.io/Qt_for_Python#Community)!
5151
### Licensing
5252

5353
PySide6 is available under both Open Source (LGPLv3/GPLv2) and commercial
54-
license. Using PyPi is the recommended installation source, because the
55-
content of the wheels is valid for both cases. For more information, refer to
54+
license. Using PyPi is the recommended installation source, because the
55+
content of the wheels is valid for both cases. For more information, refer to
5656
the [Qt Licensing page](https://www.qt.io/licensing/).

README.shiboken6-generator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Shiboken6-generator
22

3-
Shiboken is the generator used by the Qt for Python project. It outputs C++
3+
Shiboken is the generator used by the Qt for Python project. It outputs C++
44
code for CPython extensions, which can be compiled and transformed into
55
a Python module.
66

examples/qml/editingmodel/doc/editingmodel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ QAbstractListModel in QML
22
=========================
33

44
This example shows how to add, remove and move items inside a QML
5-
ListView, but showing and editing the data via roles using a
5+
ListView, but showing and editing the data via roles using a
66
QAbstractListModel from Python.
77

88
You can add new elements and reset the view using the two top buttons,

examples/qml/tutorials/extending-qml-advanced/adding/doc/adding.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ The ``Person`` type can be used from QML like this:
1818
Declare the Person Class
1919
------------------------
2020

21-
All QML types map to C++ types. Here we declare a basic C++ Person class
21+
All QML types map to C++ types. Here we declare a basic C++ Person class
2222
with the two properties we want accessible on the QML type - name and shoeSize.
2323
Although in this example we use the same name for the C++ class as the QML
2424
type, the C++ class can be named differently, or appear in a namespace.
2525

26-
The Person class implementation is quite basic. The property accessors simply
26+
The Person class implementation is quite basic. The property accessors simply
2727
return members of the object instance.
2828

2929
.. code-block:: python

examples/qml/tutorials/extending-qml-advanced/properties/doc/properties.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ The class contains a member to store the celebrant object, and also a
7575
list member storing the Person instances.
7676

7777
In QML, the type of a list properties - and the guests property is a list of
78-
people - are all of type ListProperty. ListProperty is simple value
79-
type that contains a set of functions. QML calls these functions
78+
people - are all of type ListProperty. ListProperty is simple value
79+
type that contains a set of functions. QML calls these functions
8080
whenever it needs to read from, write to or otherwise interact with
81-
the list. In addition to concrete lists like the people list used in this
81+
the list. In addition to concrete lists like the people list used in this
8282
example, the use of QQmlListProperty allows for "virtual lists" and other advanced
8383
scenarios.
8484

sources/pyside6/doc/commercial/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ any of the following licenses:
1616
#. Qt for Device Creation Enterprise (DCE)
1717

1818
The only difference is that the ADP license **does not** include the extra
19-
``Qt OPC UA``, ``Qt MQTT`` and ``Qt CoAP`` modules, which are distributed in
19+
``Qt OPC UA``, ``Qt MQTT`` and ``Qt CoAP`` modules, which are distributed in
2020
a special Python wheel.
2121

2222
All commercial licenses include the 5.15.x and 6.2.x LTS releases.
@@ -93,7 +93,7 @@ Maintenance Tool
9393
^^^^^^^^^^^^^^^^
9494

9595
As a commercial user, you are able to download the commercial set of wheels
96-
from the `Qt Maintenance Tool`_. The same versions that are available for
96+
from the `Qt Maintenance Tool`_. The same versions that are available for
9797
Qt/C++ are available for the Python bindings.
9898

9999
The wheels will be downloaded, but not installed, mainly because they should

sources/pyside6/doc/deployment/deployment-pyside6-deploy.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pyside6-deploy: the deployment tool for Qt for Python
44
#####################################################
55

66
``pyside6-deploy`` is an easy to use tool for deploying PySide6 applications to different
7-
platforms. It is a wrapper around `Nuitka <https://nuitka.net/>`_, a Python compiler that
7+
platforms. It is a wrapper around `Nuitka <https://nuitka.net/>`_, a Python compiler that
88
compiles your Python code to C code, and links with libpython to produce the final executable.
99

1010
The final executable produced has a ``.exe`` suffix on Windows. For Linux and macOS, they have a

sources/pyside6/doc/extras/QtUiTools.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Qt Designer forms are processed at run-time to produce
2-
dynamically-generated user interfaces. In order to generate a form at
2+
dynamically-generated user interfaces. In order to generate a form at
33
run-time, a resource file containing a UI file is needed.
44

55
A form loader object, provided by the ``QUiLoader`` class, is used to

sources/pyside6/doc/faq/whatisqt.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ As a framework, Qt has many components, which are distributed by components
2525
and modules, for example, `qtbase <https://code.qt.io/cgit/qt/qtbase.git/>`_
2626
is the base component that holds many modules, like: ``QtCore``, ``QtGui``,
2727
``QtWidgets``, ``QtNetwork``, etc.
28-
All those modules contains many classes that you can directly use, like the
28+
All those modules contains many classes that you can directly use, like the
2929
case of the `Classes of QtCore <https://doc.qt.io/qt-6/qtcore-module.html>`_
3030
from which you can find classes like ``QFile``, ``QTime``, ``QByteArray``, etc.
3131

sources/pyside6/doc/gettingstarted/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Cross Compilation
143143
-----------------
144144

145145
Starting from 6.3, it is possible to cross-compile Shiboken (module), and
146-
PySide. This functionality is still in Technical Preview, which means it could
146+
PySide. This functionality is still in Technical Preview, which means it could
147147
change in the future releases.
148148

149149
.. important:: The only supported configuration is using a host Linux
@@ -177,7 +177,7 @@ Prerequisites
177177
~~~~~~~~~~~~~
178178

179179
First and foremost, you need to have access to the target device because you
180-
need to copy several system files (sysroot). We recommend a Linux OS that has
180+
need to copy several system files (sysroot). We recommend a Linux OS that has
181181
the latest Qt versions, like `Manjaro ARM`_ or `Archlinux ARM`_.
182182

183183
* (target) Install Qt 6.3+ on the system using the package manager.
@@ -190,7 +190,7 @@ the latest Qt versions, like `Manjaro ARM`_ or `Archlinux ARM`_.
190190

191191
After installing these prerequisites, copy the ``target`` sysroot to your
192192
``host`` computer. This process is tricky, because copying system files from
193-
another computer might cause problems with the symbolic links. Here you
193+
another computer might cause problems with the symbolic links. Here you
194194
have two options to achieve that.
195195

196196
Option A: Copying the files
@@ -275,7 +275,7 @@ and unpacked it.
275275

276276
With those compilers, now you need a CMake toolchain file. This is
277277
a configuration file to set the compilers and sysroot information, together
278-
with extra options like compilation flags, and other details. You can use the
278+
with extra options like compilation flags, and other details. You can use the
279279
following file as an example, but keep in mind they might vary:
280280

281281
.. code-block:: cmake

sources/pyside6/doc/modules.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Qt Modules Supported by Qt for Python
8282

8383
.. grid-item-card:: :mod:`QtOpenGL Widgets <PySide6.QtOpenGLWidgets>`
8484

85-
Provides the OpenGLWidget class enabling OpenGL rendering for
85+
Provides the OpenGLWidget class enabling OpenGL rendering for
8686
a certain part of the widget tree.
8787

8888
.. grid-item-card:: :mod:`Qt Positioning <PySide6.QtPositioning>`

sources/pyside6/doc/tutorials/basictutorial/signals_and_slots.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ could be implemented by placing a ``QToolButton`` to the right of the
5757
button.clicked.connect(line_edit.clear)
5858
5959
``connect()`` returns a ``QMetaObject.Connection`` object, which can be
60-
used with the ``disconnect()`` method to sever the connection.
60+
used with the ``disconnect()`` method to sever the connection.
6161

6262
Signals can also be connected to free functions:
6363

sources/pyside6/doc/tutorials/basictutorial/translations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ is first created:
172172
xgettext -L Python -o locales/example.pot main.py
173173
174174
This file has a few generic placeholders which can be replaced by the
175-
appropriate values. It is then copied to the ``de_DE/LC_MESSAGES`` directory.
175+
appropriate values. It is then copied to the ``de_DE/LC_MESSAGES`` directory.
176176

177177
.. code-block:: bash
178178

sources/pyside6/doc/tutorials/basictutorial/uifiles.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ Custom Widgets in Qt Designer
213213
in the widget box and can be dragged onto the form just like Qt's widgets (see
214214
`Using Custom Widgets with Qt Designer <https://doc.qt.io/qt-6/designer-using-custom-widgets.html>`_
215215
). Normally, this requires implementing the widget as a plugin to Qt Designer
216-
written in C++ implementing its
216+
written in C++ implementing its
217217
`QDesignerCustomWidgetInterface <https://doc.qt.io/qt-6/qdesignercustomwidgetinterface.html>`_ .
218218

219219
Qt for Python provides a simple interface for this which is similar to
@@ -225,7 +225,7 @@ the taskmenuextension example (file ``tictactoe.py``).
225225

226226
Registering this with Qt Designer is done by providing
227227
a registration script named ``register*.py`` and pointing
228-
the path-type environment variable ``PYSIDE_DESIGNER_PLUGINS``
228+
the path-type environment variable ``PYSIDE_DESIGNER_PLUGINS``
229229
to the directory.
230230

231231
The code of the registration script looks as follows:

sources/pyside6/doc/tutorials/expenses/expenses.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Now that our class is defined, create an instance of it and call `show()`.
5656
Menu bar
5757
--------
5858

59-
Using a `QMainWindow` gives some features for free, among them a *menu bar*. To use it, you need
59+
Using a `QMainWindow` gives some features for free, among them a *menu bar*. To use it, you need
6060
to call the method `menuBar()` and populate it inside the `MainWindow` class.
6161

6262
.. literalinclude:: steps/02-expenses.py
@@ -94,7 +94,7 @@ Window layout
9494
Now that the main empty window is in place, you need to start adding widgets to achieve the main
9595
goal of creating an expenses application.
9696

97-
After declaring the example data, you can visualize it on a simple `QTableWidget`. To do so, you
97+
After declaring the example data, you can visualize it on a simple `QTableWidget`. To do so, you
9898
will add this procedure to the `Widget` constructor.
9999

100100
.. warning:: Only for the example purpose a QTableWidget will be used,

sources/pyside6/doc/tutorials/portingguide/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ C++ vs Python
6363
doStuff(key, value)
6464
6565
In this example, ``func()`` would treat ``var`` as a local
66-
name without the ``global`` statement. This would lead to
66+
name without the ``global`` statement. This would lead to
6767
a ``NameError`` in the ``value is None`` handling, on
6868
accessing ``var``. For more information about this, see
6969
`Python refernce documentation <python refdoc>`_.

sources/pyside6/doc/tutorials/qmlintegration/qmlintegration.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ Python-QML integration
22
======================
33

44
This tutorial provides a quick walk-through of a python application that loads, and interacts with
5-
a QML file. QML is a declarative language that lets you design UIs faster than a traditional
6-
language, such as C++. The QtQml and QtQuick modules provides the necessary infrastructure for
5+
a QML file. QML is a declarative language that lets you design UIs faster than a traditional
6+
language, such as C++. The QtQml and QtQuick modules provides the necessary infrastructure for
77
QML-based UIs.
88

99
In this tutorial, you will learn how to integrate Python with a QML application.
1010
This mechanism will help us to understand how to use Python as a backend for certain
11-
signals from the UI elements in the QML interface. Additionally, you will learn how to provide
11+
signals from the UI elements in the QML interface. Additionally, you will learn how to provide
1212
a modern look to your QML application using one of the features from Qt Quick Controls 2.
1313

1414
The tutorial is based on an application that allow you to set many text properties, like increasing
15-
the font size, changing the color, changing the style, and so on. Before you begin, install the
15+
the font size, changing the color, changing the style, and so on. Before you begin, install the
1616
`PySide6 <https://pypi.org/project/PySide6/>`_ Python packages.
1717

1818
The following step-by-step process will guide you through the key elements of the QML based
@@ -68,7 +68,7 @@ application and PySide6 integration:
6868

6969
The properties *Italic*, *Bold*, and *Underline* are mutually
7070
exclusive, this means only one can be active at any time.
71-
To achieve this each time we select one of these options, we
71+
To achieve this each time we select one of these options, we
7272
check the three properties via the QML element property as you can
7373
see in the above snippet.
7474
Only one of the three will return *True*, while the other two

sources/pyside6/doc/videos.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Tutorials
3737
:img-top: https://img.youtube.com/vi/i-utZN_NP6c/mqdefault.jpg
3838
:link: https://www.youtube.com/embed/i-utZN_NP6c
3939

40-
How to install PySide6 on a new virtual environment
40+
How to install PySide6 on a new virtual environment
4141

4242

4343
Community events

sources/shiboken6/doc/gettingstarted.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The same can be used for the module, changing the value of ``internal-build-type
4040
``shiboken6-module``.
4141

4242
.. warning:: If you are planning to use PySide too, for examples like
43-
'scriptableapplication' you need to have build it as well. The main issue is
43+
'scriptableapplication' you need to have build it as well. The main issue is
4444
that your PySide and Shiboken needs to be build using the same dependencies
4545
from Qt and libclang.
4646

sources/shiboken6/doc/typesystem_manipulating_objects.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ language API (both are set to true by default).
136136
The ``remove`` attribute is an *optional* boolean attribute, which can
137137
mark the field to be discarded on generation.
138138

139-
The *optional* ``rename`` attribute can be used to change the name of the
139+
The *optional* ``rename`` attribute can be used to change the name of the
140140
given field in the generated target language API.
141141

142142
The *optional* ``opaque-container`` attribute specifies whether
@@ -183,7 +183,7 @@ The ``since`` attribute specify the API version when this function was modified.
183183
The ``allow-thread`` attribute specifies whether a function should be wrapped
184184
into ``Py_BEGIN_ALLOW_THREADS`` and ``Py_END_ALLOW_THREADS``, that is,
185185
temporarily release the GIL (global interpreter lock). Doing so is required
186-
for any thread-related function (wait operations), functions that might call
186+
for any thread-related function (wait operations), functions that might call
187187
a virtual function (potentially reimplemented in Python), and recommended for
188188
lengthy I/O operations or similar. It has performance costs, though.
189189
The value ``auto`` means that it will be turned off for functions for which
@@ -249,10 +249,10 @@ and disables generating the code for overriding the function in Python
249249
The ``remove`` attribute is an *optional* boolean attribute, which can
250250
mark the function to be discarded on generation.
251251

252-
The *optional* ``rename`` attribute can be used to change the name of the
252+
The *optional* ``rename`` attribute can be used to change the name of the
253253
given function in the generated target language API.
254254

255-
The *optional* ``access`` attribute changes the access privileges of the
255+
The *optional* ``access`` attribute changes the access privileges of the
256256
given function in the generated target language API.
257257

258258
The *optional* **snake-case** attribute allows for overriding the value

sources/shiboken6/doc/typesystem_ownership.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ If the class has a virtual destructor (and C++ classes with virtual methods shou
8787
C++ instance invalidates the wrapper only when the overridden destructor is called.
8888

8989
An instance of the **shell** is created when created in Python. However,
90-
when the object is created in C++, like in a factory method or a parameter
90+
when the object is created in C++, like in a factory method or a parameter
9191
to a virtual function like ``QObject::event(QEvent *)``, the wrapped object
9292
is a C++ instance of the native class, not the **shell** one, and we cannot
9393
know when it is destroyed.
@@ -178,8 +178,8 @@ To solve this, you should hold a reference to the source object, like in
178178
renderer.render()
179179
180180
181-
Ownership Management in the Typesystem
182-
=======================================
181+
Ownership Management in the Typesystem
182+
======================================
183183

184184
Python Wrapper Code
185185
-------------------

0 commit comments

Comments
 (0)