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 9ccf5adc authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent 79a7e688
......@@ -371,7 +371,7 @@ void ItemModel::setCollection(const Collection &collection)
job->setFetchScope(d->monitor->itemFetchScope());
connect(job, SIGNAL(itemsReceived(Akonadi::Item::List)),
SLOT(itemsAdded(Akonadi::Item::List)));
connect(job, SIGNAL(result(KJob*)), SLOT(listingDone(KJob*)));
connect(job, &ItemFetchJob::result, this, [this](KJob *job) { d->listingDone(job); });
}
emit collectionChanged(collection);
......
......@@ -181,7 +181,6 @@ private:
class Private;
Private *const d;
Q_PRIVATE_SLOT(d, void listingDone(KJob *))
Q_PRIVATE_SLOT(d, void collectionFetchResult(KJob *))
Q_PRIVATE_SLOT(d, void itemChanged(const Akonadi::Item &, const QSet<QByteArray> &))
Q_PRIVATE_SLOT(d, void itemMoved(const Akonadi::Item &, const Akonadi::Collection &, const Akonadi::Collection &))
......
......@@ -139,11 +139,11 @@ void CollectionRequester::Private::init()
q->setFocusProxy(button);
q->setFocusPolicy(Qt::StrongFocus);
q->connect(button, SIGNAL(clicked()), q, SLOT(_k_slotOpenDialog()));
q->connect(button, &QPushButton::clicked, q, [this]() { _k_slotOpenDialog(); });
QAction *openAction = new QAction(q);
openAction->setShortcut(KStandardShortcut::Open);
q->connect(openAction, SIGNAL(triggered(bool)), q, SLOT(_k_slotOpenDialog()));
q->connect(openAction, &QAction::triggered, q, [this]() { _k_slotOpenDialog(); });
collectionDialog = new CollectionDialog(q);
collectionDialog->setWindowIcon(QIcon::fromTheme(QStringLiteral("akonadi")));
......
......@@ -144,7 +144,6 @@ private:
class Private;
Private *const d;
Q_PRIVATE_SLOT(d, void _k_slotOpenDialog())
Q_PRIVATE_SLOT(d, void _k_collectionReceived(KJob *job))
Q_PRIVATE_SLOT(d, void _k_collectionsNamesReceived(KJob *job))
};
......
......@@ -79,7 +79,7 @@ void CollectionView::Private::init()
mParent->setDragEnabled(true);
dragExpandTimer.setSingleShot(true);
mParent->connect(&dragExpandTimer, SIGNAL(timeout()), SLOT(dragExpand()));
mParent->connect(&dragExpandTimer, &QTimer::timeout, mParent, [this]() { dragExpand(); });
mParent->connect(mParent, SIGNAL(clicked(QModelIndex)), mParent, SLOT(itemClicked(QModelIndex)));
......
......@@ -128,7 +128,6 @@ private:
class Private;
Private *const d;
Q_PRIVATE_SLOT(d, void dragExpand())
Q_PRIVATE_SLOT(d, void itemClicked(const QModelIndex &))
Q_PRIVATE_SLOT(d, void itemCurrentChanged(const QModelIndex &))
//@endcond
......
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