diff options
Diffstat (limited to 'tests/old-style-connect/main.cpp_fixed.cpp.expected')
-rw-r--r-- | tests/old-style-connect/main.cpp_fixed.cpp.expected | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/tests/old-style-connect/main.cpp_fixed.cpp.expected b/tests/old-style-connect/main.cpp_fixed.cpp.expected index 9340c212..0fb736a3 100644 --- a/tests/old-style-connect/main.cpp_fixed.cpp.expected +++ b/tests/old-style-connect/main.cpp_fixed.cpp.expected @@ -6,8 +6,8 @@ #include <QtWidgets/QAction> #include <QtWidgets/QProgressDialog> #include <QtDBus/QDBusInterface> - - +#include <QtWidgets/QMenu> +#include <QtWidgets/QMessageBox> @@ -366,4 +366,21 @@ void testStatic() TestStatic::disconnect(test, SIGNAL(destroyed(QObject*)), test, SLOT(test(QObject*))); } +void test1ArgDisconnect() +{ + QObject *o; + o->disconnect(SIGNAL(destroyed())); +} + +void testQMenuAndQMessageBox() +{ + QMenu m; + OtherObj o; + m.addAction("test", &o, &OtherObj::otherSlot); // Warn + m.addAction("test", &o, &OtherObj::otherSlot); // OK + QMessageBox box; + box.open(); // OK + box.open(&o,SLOT(otherSlot())); // Warn +} + #include "main.moc" |