diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2023-01-30 15:00:04 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2023-01-30 15:39:37 +0100 |
commit | b03fd195a14e0eb103c7171284dee8a7bb176e8d (patch) | |
tree | 09f7235137d5a9dd1ca5ab081d5f6ebe59f9e12d /tests | |
parent | 3dcf1490cb2bce34cb1f7777dfe836310f305817 (diff) | |
download | qttools-b03fd195a14e0eb103c7171284dee8a7bb176e8d.tar.gz |
QtTools: Replace string connection leftovers with typed connections
Pick-to: 6.5
Change-Id: Ib52412754f1bba53e3cd16c5aa51716e2679c0e7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qhelpcontentmodel/tst_qhelpcontentmodel.cpp | 6 | ||||
-rw-r--r-- | tests/auto/qhelpindexmodel/tst_qhelpindexmodel.cpp | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/tests/auto/qhelpcontentmodel/tst_qhelpcontentmodel.cpp b/tests/auto/qhelpcontentmodel/tst_qhelpcontentmodel.cpp index 7fb3cb629..b02ff2d1c 100644 --- a/tests/auto/qhelpcontentmodel/tst_qhelpcontentmodel.cpp +++ b/tests/auto/qhelpcontentmodel/tst_qhelpcontentmodel.cpp @@ -76,8 +76,7 @@ void tst_QHelpContentModel::setupContents() h.setReadOnly(false); QHelpContentModel *m = h.contentModel(); SignalWaiter w; - connect(m, SIGNAL(contentsCreated()), - &w, SLOT(stopWaiting())); + connect(m, &QHelpContentModel::contentsCreated, &w, &SignalWaiter::stopWaiting); w.start(); h.setupData(); int i = 0; @@ -102,8 +101,7 @@ void tst_QHelpContentModel::contentItemAt() h.setReadOnly(false); QHelpContentModel *m = h.contentModel(); SignalWaiter w; - connect(m, SIGNAL(contentsCreated()), - &w, SLOT(stopWaiting())); + connect(m, &QHelpContentModel::contentsCreated, &w, &SignalWaiter::stopWaiting); w.start(); h.setupData(); int i = 0; diff --git a/tests/auto/qhelpindexmodel/tst_qhelpindexmodel.cpp b/tests/auto/qhelpindexmodel/tst_qhelpindexmodel.cpp index 10dccfc40..834ce37b0 100644 --- a/tests/auto/qhelpindexmodel/tst_qhelpindexmodel.cpp +++ b/tests/auto/qhelpindexmodel/tst_qhelpindexmodel.cpp @@ -75,8 +75,7 @@ void tst_QHelpIndexModel::setupIndex() h.setReadOnly(false); QHelpIndexModel *m = h.indexModel(); SignalWaiter w; - connect(m, SIGNAL(indexCreated()), - &w, SLOT(stopWaiting())); + connect(m, &QHelpIndexModel::indexCreated, &w, &SignalWaiter::stopWaiting); w.start(); h.setupData(); int i = 0; @@ -107,8 +106,7 @@ void tst_QHelpIndexModel::filter() h.setReadOnly(false); QHelpIndexModel *m = h.indexModel(); SignalWaiter w; - connect(m, SIGNAL(indexCreated()), - &w, SLOT(stopWaiting())); + connect(m, &QHelpIndexModel::indexCreated, &w, &SignalWaiter::stopWaiting); w.start(); h.setupData(); int i = 0; |