We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1f1ed8 commit 56ac983Copy full SHA for 56ac983
tests/PythonQtTests.cpp
@@ -465,9 +465,11 @@ void PythonQtTestApi::initTestCase()
465
void PythonQtTestApi::testProperties()
466
{
467
PythonQtObjectPtr main = PythonQt::self()->getMainModule();
468
+#ifdef PYTHONQT_SUPPORT_NAME_PROPERTY
469
// check for name alias (for backward comp to Qt3)
470
main.evalScript("obj.name = 'hello'");
471
QVERIFY(QString("hello") == main.getVariable("obj.name").toString());
472
+#endif
473
474
main.evalScript("obj.objectName = 'hello2'");
475
QVERIFY(QString("hello2") == main.getVariable("obj.objectName").toString());
0 commit comments