Commit c5677359 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent 84c9c724
......@@ -96,7 +96,7 @@ void ContactGroupEditor::Private::itemFetchDone(KJob *job)
setReadOnly(mReadOnly);
QTimer::singleShot(0, mParent, SLOT(adaptHeaderSizes()));
QTimer::singleShot(0, mParent, [this]() { adaptHeaderSizes(); });
}
}
......@@ -121,7 +121,7 @@ void ContactGroupEditor::Private::parentCollectionFetchDone(KJob *job)
setReadOnly(mReadOnly);
QTimer::singleShot(0, mParent, SLOT(adaptHeaderSizes()));
QTimer::singleShot(0, mParent, [this]() { adaptHeaderSizes(); });
}
void ContactGroupEditor::Private::storeDone(KJob *job)
......@@ -224,7 +224,7 @@ ContactGroupEditor::ContactGroupEditor(Mode mode, QWidget *parent)
KContacts::ContactGroup dummyGroup;
d->mGroupModel->loadContactGroup(dummyGroup);
QTimer::singleShot(0, this, SLOT(adaptHeaderSizes()));
QTimer::singleShot(0, this, [this] () { d->adaptHeaderSizes(); });
QTimer::singleShot(0, d->mGui.groupName, SLOT(setFocus()));
}
......
......@@ -90,10 +90,10 @@ void KDatePickerPopup::buildMenu()
}
if (mItems & Words) {
addAction(i18nc("@option today", "&Today"), this, SLOT(slotToday()));
addAction(i18nc("@option tomorrow", "To&morrow"), this, SLOT(slotTomorrow()));
addAction(i18nc("@option next week", "Next &Week"), this, SLOT(slotNextWeek()));
addAction(i18nc("@option next month", "Next M&onth"), this, SLOT(slotNextMonth()));
addAction(i18nc("@option today", "&Today"), this, [this]() { slotToday(); });
addAction(i18nc("@option tomorrow", "To&morrow"), this, [this]() { slotTomorrow(); });
addAction(i18nc("@option next week", "Next &Week"), this, [this]() { slotNextWeek(); });
addAction(i18nc("@option next month", "Next M&onth"), this, [this]() { slotNextMonth(); });
if (mItems & NoDate) {
addSeparator();
......@@ -101,7 +101,7 @@ void KDatePickerPopup::buildMenu()
}
if (mItems & NoDate) {
addAction(i18nc("@option do not specify a date", "No Date"), this, SLOT(slotNoDate()));
addAction(i18nc("@option do not specify a date", "No Date"), this, [this]() { slotNoDate(); });
}
}
......
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