aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/pysidetest/testobject.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-01-05 13:54:31 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-01-08 13:05:30 +0100
commit5c69ee2f40ec0cf5d44c798feaca64809eb55889 (patch)
treef51027efee2d9ffc4fc401c849490add7cf842c4 /sources/pyside6/tests/pysidetest/testobject.cpp
parent2ff4524802b90be37c10662593b5060af86d338f (diff)
Add QLatin1String
It is needed For the QIcon::ThemeIcon fields. Task-number: PYSIDE-2497 Task-number: PYSIDE-2537 Change-Id: I11d94c150dfa614797038e56cd37128bf3e88cff 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.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/sources/pyside6/tests/pysidetest/testobject.cpp b/sources/pyside6/tests/pysidetest/testobject.cpp
index 2233bad62..78c52ee59 100644
--- a/sources/pyside6/tests/pysidetest/testobject.cpp
+++ b/sources/pyside6/tests/pysidetest/testobject.cpp
@@ -30,6 +30,16 @@ void TestObject::emitSignalWithTypedefValue(int value)
emit signalWithTypedefValue(TypedefValue(value));
}
+void TestObject::setQLatin1String(QLatin1String v)
+{
+ m_qLatin1String = v;
+}
+
+QString TestObject::qLatin1String() const
+{
+ return m_qLatin1String;
+}
+
QDebug operator<<(QDebug dbg, TestObject& testObject)
{
QDebugStateSaver saver(dbg);