Commit 879a826f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use new connect api

parent 8a9795d1
...@@ -692,12 +692,12 @@ AkonadiCollectionView::AkonadiCollectionView(CalendarView *view, bool hasContext ...@@ -692,12 +692,12 @@ AkonadiCollectionView::AkonadiCollectionView(CalendarView *view, bool hasContext
mDefaultCalendar); mDefaultCalendar);
//Disable a calendar or remove a referenced calendar //Disable a calendar or remove a referenced calendar
QAction *disableAction = xmlclient->actionCollection()->addAction(QStringLiteral("collection_disable"), this, SLOT(edit_disable())); QAction *disableAction = xmlclient->actionCollection()->addAction(QStringLiteral("collection_disable"), this, &AkonadiCollectionView::edit_disable);
disableAction->setText(i18n("Remove from list")); disableAction->setText(i18n("Remove from list"));
disableAction->setIcon(QIcon::fromTheme(QStringLiteral("list-remove"))); disableAction->setIcon(QIcon::fromTheme(QStringLiteral("list-remove")));
//Enable (subscribe) to a calendar. //Enable (subscribe) to a calendar.
mEnableAction = xmlclient->actionCollection()->addAction(QStringLiteral("collection_enable"), this, SLOT(edit_enable())); mEnableAction = xmlclient->actionCollection()->addAction(QStringLiteral("collection_enable"), this, &AkonadiCollectionView::edit_enable);
mEnableAction->setText(i18n("Add to list permanently")); mEnableAction->setText(i18n("Add to list permanently"));
mEnableAction->setIcon(QIcon::fromTheme(QStringLiteral("bookmarks"))); mEnableAction->setIcon(QIcon::fromTheme(QStringLiteral("bookmarks")));
......
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