diff options
author | Jake Petroules <jake.petroules@qt.io> | 2017-02-17 16:01:46 -0800 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2017-02-22 19:48:43 +0000 |
commit | a2b3f1ce3ec58cc9c1e4ac70a2eb841ac767ba2e (patch) | |
tree | def0419158470adb37aa3c18547d46ce6fb93bb7 /tests | |
parent | ca91a12d768b9249a9e502806d68cb68afd5b16e (diff) |
Convert to templated signals and slots
Change-Id: I1c7fe27767bb210e27f22fd47bfc0d2466e6f794
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/purchasing/qinappstore/tst_qinappstore.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/auto/purchasing/qinappstore/tst_qinappstore.cpp b/tests/auto/purchasing/qinappstore/tst_qinappstore.cpp index 1a55a3a..98db3ee 100644 --- a/tests/auto/purchasing/qinappstore/tst_qinappstore.cpp +++ b/tests/auto/purchasing/qinappstore/tst_qinappstore.cpp @@ -28,6 +28,7 @@ #include <QtTest/QtTest> #include <QtPurchasing/QInAppStore> +#include <QtPurchasing/QInAppTransaction> class tst_QInAppStore: public QObject { @@ -70,9 +71,9 @@ void tst_QInAppStore::registerUnknownProduct() QInAppStore store(this); SignalReceiver receiver; - connect(&store, SIGNAL(productRegistered(QInAppProduct*)), &receiver, SLOT(productRegistered(QInAppProduct*))); - connect(&store, SIGNAL(productUnknown(QInAppProduct::ProductType,QString)), &receiver, SLOT(productUnknown(QInAppProduct::ProductType,QString))); - connect(&store, SIGNAL(transactionReady(QInAppTransaction*)), &receiver, SLOT(transactionReady(QInAppTransaction*))); + connect(&store, &QInAppStore::productRegistered, &receiver, &SignalReceiver::productRegistered); + connect(&store, &QInAppStore::productUnknown, &receiver, &SignalReceiver::productUnknown); + connect(&store, &QInAppStore::transactionReady, &receiver, &SignalReceiver::transactionReady); store.registerProduct(QInAppProduct::Consumable, QStringLiteral("unknownConsumable")); store.registerProduct(QInAppProduct::Unlockable, QStringLiteral("unknownUnlockable")); |