Commit 1d94c75c authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent a5fbf903
......@@ -114,7 +114,7 @@ void CreateFolderCommand::setRootFolder(Folder *rootFolder)
void CreateFolderCommand::doStart()
{
QTimer::singleShot(0, this, SLOT(doCreate()));
QTimer::singleShot(0, this, [this]() { d->doCreate(); });
}
void CreateFolderCommand::doAbort()
......
......@@ -165,7 +165,7 @@ QWeakPointer<FeedList> DeleteSubscriptionCommand::feedList() const
void DeleteSubscriptionCommand::doStart()
{
QTimer::singleShot(0, this, SLOT(startDelete()));
QTimer::singleShot(0, this, [this]() { d->startDelete(); });
}
void DeleteSubscriptionCommand::Private::jobFinished()
......@@ -188,7 +188,7 @@ void DeleteSubscriptionCommand::Private::startDelete()
return;
}
QObject::connect(job, SIGNAL(finished(KJob*)), q, SLOT(jobFinished()));
QObject::connect(job, &DeleteSubscriptionJob::finished, q, [this]() { jobFinished(); });
job->start();
}
......
......@@ -51,8 +51,6 @@ private:
private:
class Private;
Private *const d;
Q_PRIVATE_SLOT(d, void startDelete())
Q_PRIVATE_SLOT(d, void jobFinished())
};
}
......
......@@ -137,7 +137,7 @@ void EditSubscriptionCommand::setSubscriptionListView(SubscriptionListView *view
void EditSubscriptionCommand::doStart()
{
QTimer::singleShot(0, this, SLOT(startEdit()));
QTimer::singleShot(0, this, [this]() { d->startEdit(); });
}
void EditSubscriptionCommand::Private::startEdit()
......
......@@ -139,7 +139,7 @@ void ExpireItemsCommand::doAbort()
void ExpireItemsCommand::doStart()
{
QTimer::singleShot(0, this, SLOT(createDeleteJobs()));
QTimer::singleShot(0, this, [this]() { d->createDeleteJobs(); });
}
#include "moc_expireitemscommand.cpp"
......@@ -152,7 +152,7 @@ void ImportFeedListCommand::doAbort()
void ImportFeedListCommand::doStart()
{
QTimer::singleShot(0, this, SLOT(doImport()));
QTimer::singleShot(0, this, [this]() { d->doImport(); });
}
#include "moc_importfeedlistcommand.cpp"
......@@ -44,11 +44,9 @@ protected:
void initStyleOption(QStyleOptionViewItem *option, const QModelIndex &index) const override;
private Q_SLOTS:
void recalculateRowHeight();
private:
int m_viewIconHeight;
void recalculateRowHeight();
int m_viewIconHeight = 0;
};
}
......
......@@ -87,10 +87,8 @@ public:
void start() override;
private Q_SLOTS:
void doDelete();
private:
void doDelete();
int m_id;
QWeakPointer<FeedList> m_feedList;
};
......
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