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

Port more code to new connect api

parent a90bf634
......@@ -209,7 +209,6 @@ private:
Q_PRIVATE_SLOT(d, void doStart())
Q_PRIVATE_SLOT(d, void serviceOwnerChanged(QString, QString, QString))
Q_PRIVATE_SLOT(d, void timeout())
};
// ===================== helper functions ============================
......
......@@ -277,8 +277,8 @@ FavoriteCollectionsModel::FavoriteCollectionsModel(QAbstractItemModel *source, c
d->loadConfig();
//React to various changes in the source model
connect(source, SIGNAL(modelReset()), this, SLOT(reload()));
connect(source, SIGNAL(layoutChanged()), this, SLOT(reload()));
connect(source, &QAbstractItemModel::modelReset, this, [this]() { d->reload(); });
connect(source, &QAbstractItemModel::layoutChanged, this, [this]() { d->reload(); });
connect(source, &QAbstractItemModel::rowsInserted, this, [this](const QModelIndex &parent, int begin, int end) { d->rowsInserted(parent, begin, end); });
connect(source, &QAbstractItemModel::dataChanged, this, [this](const QModelIndex &tl, const QModelIndex &br) { d->dataChanged(tl, br); });
}
......
......@@ -155,8 +155,6 @@ private:
class Private;
Private *const d;
Q_PRIVATE_SLOT(d, void reload())
//@endcond
};
......
......@@ -65,7 +65,7 @@ void ItemView::Private::init()
mParent->connect(mParent, SIGNAL(activated(QModelIndex)), mParent, SLOT(itemActivated(QModelIndex)));
mParent->connect(mParent, SIGNAL(clicked(QModelIndex)), mParent, SLOT(itemClicked(QModelIndex)));
mParent->connect(mParent, SIGNAL(doubleClicked(QModelIndex)), mParent, SLOT(itemDoubleClicked(QModelIndex)));
mParent->connect(mParent, QOverload<const QModelIndex &>::of(&QAbstractItemView::doubleClicked), mParent, [this](const QModelIndex &index) { itemDoubleClicked(index); });
ControlGui::widgetNeedsAkonadi(mParent);
}
......
......@@ -47,9 +47,6 @@ private:
friend class XmlWriteJobPrivate;
XmlWriteJobPrivate *const d;
void done();
Q_PRIVATE_SLOT(d, void collectionFetchResult(KJob *))
Q_PRIVATE_SLOT(d, void itemFetchResult(KJob *))
};
}
......
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