diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-11-27 10:01:53 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-11-28 14:23:37 +0100 |
| commit | e79aea5bdb30b88c84e92ab91366c9c0274ea21d (patch) | |
| tree | b2abb848de0a25b0b3d4618729c3782a89310e84 /sources/pyside6/libpyside/pysidesignal_p.h | |
| parent | 9389f4874b32f394b6f67be03a6c18014d64d734 (diff) | |
libpyside: Remove struct SignalSignature
SignalSignature is temporarily used while constructing Signal
instances and finally converted into a PySideSignalData::Signature.
Change the code to use PySideSignalData::Signature right away,
which allows simplifying the code.
As a drive-by, fix the less-than method.
Shorten the data type for the attributes to be able to add further
values.
Pick-to: 6.6
Task-number: PYSIDE-2524
Change-Id: I4b67d55b65356fbf56633bbbe1d3ef466167227c
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/libpyside/pysidesignal_p.h')
| -rw-r--r-- | sources/pyside6/libpyside/pysidesignal_p.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/pyside6/libpyside/pysidesignal_p.h b/sources/pyside6/libpyside/pysidesignal_p.h index 76750dad0..fa7703e8f 100644 --- a/sources/pyside6/libpyside/pysidesignal_p.h +++ b/sources/pyside6/libpyside/pysidesignal_p.h @@ -13,8 +13,8 @@ struct PySideSignalData { struct Signature { - QByteArray signature; - int attributes; + QByteArray signature; // ','-separated list of parameter types + unsigned short attributes; }; QByteArray signalName; @@ -39,10 +39,10 @@ struct PySideSignalInstancePrivate { QByteArray signalName; QByteArray signature; - int attributes = 0; PyObject *source = nullptr; PyObject *homonymousMethod = nullptr; PySideSignalInstance *next = nullptr; + unsigned short attributes = 0; }; namespace PySide::Signal { |
