Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 428045e8 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent 97ad90eb
......@@ -27,6 +27,7 @@
#include <KAboutData>
#include <KPluginFactory>
#include <KLocalizedString>
#include <qabstractslider.h>
#include <QVBoxLayout>
......@@ -55,8 +56,8 @@ KCMAkregatorAppearanceConfig::KCMAkregatorAppearanceConfig(QWidget *parent, cons
connect(m_ui.slider_minimumFontSize, &QAbstractSlider::sliderMoved, m_ui.kcfg_MinimumFontSize, &QSpinBox::setValue);
connect(m_ui.slider_mediumFontSize, &QAbstractSlider::sliderMoved, m_ui.kcfg_MediumFontSize, &QSpinBox::setValue);
connect(m_ui.kcfg_MinimumFontSize, SIGNAL(valueChanged(int)), m_ui.slider_minimumFontSize, SLOT(setValue(int)));
connect(m_ui.kcfg_MediumFontSize, SIGNAL(valueChanged(int)), m_ui.slider_mediumFontSize, SLOT(setValue(int)));
connect(m_ui.kcfg_MinimumFontSize, QOverload<int>::of(&KPluralHandlingSpinBox::valueChanged), m_ui.slider_minimumFontSize, &QSlider::setValue);
connect(m_ui.kcfg_MediumFontSize, QOverload<int>::of(&KPluralHandlingSpinBox::valueChanged), m_ui.slider_mediumFontSize, &QSlider::setValue);
KAboutData *about = new KAboutData(QStringLiteral("kcmakrappearanceconfig"),
i18n("Configure Feed Reader Appearance"),
QString(), QString(), KAboutLicense::GPL,
......
......@@ -63,7 +63,7 @@ void ExpireItemsCommand::Private::addDeleteJobForFeed(Feed *feed)
{
Q_ASSERT(feed);
ArticleDeleteJob *job = new ArticleDeleteJob(q);
connect(job, SIGNAL(finished(KJob*)), q, SLOT(jobFinished(KJob*)));
connect(job, &ArticleDeleteJob::finished, q, [this](KJob *job) { jobFinished(job); });
m_jobs.insert(job);
feed->deleteExpiredArticles(job);
job->start();
......
......@@ -132,7 +132,7 @@ void LoadFeedListCommand::setStorage(Backend::Storage *s)
void LoadFeedListCommand::doStart()
{
QTimer::singleShot(KRandom::random() % 400, this, SLOT(doLoad()));
QTimer::singleShot(KRandom::random() % 400, this, [this]() { d->doLoad(); });
}
void LoadFeedListCommand::doAbort()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment