summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-02-17 16:01:46 -0800
committerJake Petroules <jake.petroules@qt.io>2017-02-22 19:48:43 +0000
commita2b3f1ce3ec58cc9c1e4ac70a2eb841ac767ba2e (patch)
treedef0419158470adb37aa3c18547d46ce6fb93bb7 /tests
parentca91a12d768b9249a9e502806d68cb68afd5b16e (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.cpp7
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"));