summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/qwebenginedownloadrequest/tst_qwebenginedownloadrequest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/widgets/qwebenginedownloadrequest/tst_qwebenginedownloadrequest.cpp')
-rw-r--r--tests/auto/widgets/qwebenginedownloadrequest/tst_qwebenginedownloadrequest.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/auto/widgets/qwebenginedownloadrequest/tst_qwebenginedownloadrequest.cpp b/tests/auto/widgets/qwebenginedownloadrequest/tst_qwebenginedownloadrequest.cpp
index 622cb16b5..483eb08c3 100644
--- a/tests/auto/widgets/qwebenginedownloadrequest/tst_qwebenginedownloadrequest.cpp
+++ b/tests/auto/widgets/qwebenginedownloadrequest/tst_qwebenginedownloadrequest.cpp
@@ -26,6 +26,8 @@
**
****************************************************************************/
+#include "../util.h"
+
#include <QCoreApplication>
#include <QSignalSpy>
#include <QStandardPaths>
@@ -93,14 +95,6 @@ private:
QSet<QWebEngineDownloadRequest *> m_finishedDownloads;
};
-class ScopedConnection {
-public:
- ScopedConnection(QMetaObject::Connection connection) : m_connection(std::move(connection)) {}
- ~ScopedConnection() { QObject::disconnect(m_connection); }
-private:
- QMetaObject::Connection m_connection;
-};
-
Q_DECLARE_METATYPE(tst_QWebEngineDownloadRequest::UserAction)
Q_DECLARE_METATYPE(tst_QWebEngineDownloadRequest::FileAction)