diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-02-23 08:32:48 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-03-01 14:36:12 +0100 |
| commit | e5a973ca08e54206cd4886014ac1412782ffb265 (patch) | |
| tree | fdc46d0ec40d9c2617075f02fc29948605b0859b /sources/pyside6/tests/pysidetest/testobject.cpp | |
| parent | 5cdc4d20858519f9f71693e254ebec56a68ce892 (diff) | |
Fix connecting to signals with QFlags<>
Additionally register the shiboken converter under the type alias
name ("Qt::Alignment"), which appears in the meta method signature
besides the full name ("QFlags<Qt::AlignmentFlag>").
Manifests as signal:
QBluetoothDeviceDiscoveryAgent::deviceUpdated(QBluetoothDeviceInfo, QBluetoothDeviceInfo::Fields)
Pick-to: 6.6
Fixes: PYSIDE-2613
Change-Id: I7ecce8e0b3f8ddf790c40260fc156184e83cad69
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/tests/pysidetest/testobject.cpp')
| -rw-r--r-- | sources/pyside6/tests/pysidetest/testobject.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/pyside6/tests/pysidetest/testobject.cpp b/sources/pyside6/tests/pysidetest/testobject.cpp index 78c52ee59..295945a86 100644 --- a/sources/pyside6/tests/pysidetest/testobject.cpp +++ b/sources/pyside6/tests/pysidetest/testobject.cpp @@ -30,6 +30,11 @@ void TestObject::emitSignalWithTypedefValue(int value) emit signalWithTypedefValue(TypedefValue(value)); } +void TestObject::emitFlagsSignal(Qt::Alignment alignment) +{ + emit flagsSignal(alignment); +} + void TestObject::setQLatin1String(QLatin1String v) { m_qLatin1String = v; |
