summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-04 20:32:07 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-04 20:32:16 (GMT)
commitcdefa9850ad171154824495feb1cf6f88d1272c6 (patch)
tree96536018b46ab0e76c0b44f8becf1fd70d50a907
parent61dea6d0221c407ff9cd31f8245f4b324b62c4ed (diff)
Use new connect api
-rw-r--r--plugins/webengineurlinterceptor/adblock/lib/adblocksubscription.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/webengineurlinterceptor/adblock/lib/adblocksubscription.cpp b/plugins/webengineurlinterceptor/adblock/lib/adblocksubscription.cpp
index 24eb86c..6ec49cd 100644
--- a/plugins/webengineurlinterceptor/adblock/lib/adblocksubscription.cpp
+++ b/plugins/webengineurlinterceptor/adblock/lib/adblocksubscription.cpp
@@ -109,13 +109,13 @@ void AdBlockSubscription::loadSubscription(const QStringList &disabledRules)
QFile file(m_filePath);
if (!file.exists()) {
- QTimer::singleShot(0, this, SLOT(updateSubscription()));
+ QTimer::singleShot(0, this, &AdBlockSubscription::updateSubscription);
return;
}
if (!file.open(QFile::ReadOnly)) {
qWarning() << "AdBlockSubscription::" << __FUNCTION__ << "Unable to open adblock file for reading" << m_filePath;
- QTimer::singleShot(0, this, SLOT(updateSubscription()));
+ QTimer::singleShot(0, this, &AdBlockSubscription::updateSubscription);
return;
}
@@ -128,7 +128,7 @@ void AdBlockSubscription::loadSubscription(const QStringList &disabledRules)
if (!header.startsWith(QLatin1String("[Adblock")) || m_title.isEmpty()) {
qWarning() << "AdBlockSubscription::" << __FUNCTION__ << "invalid format of adblock file" << m_filePath;
- QTimer::singleShot(0, this, SLOT(updateSubscription()));
+ QTimer::singleShot(0, this, &AdBlockSubscription::updateSubscription);
return;
}
@@ -146,7 +146,7 @@ void AdBlockSubscription::loadSubscription(const QStringList &disabledRules)
// Initial update
if (m_rules.isEmpty() && !m_updated) {
- QTimer::singleShot(0, this, SLOT(updateSubscription()));
+ QTimer::singleShot(0, this, &AdBlockSubscription::updateSubscription);
}
}