Commit fadb0ae9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use new connect api

parent 6faf3cdc
...@@ -269,8 +269,8 @@ void ActionManager::initActions() ...@@ -269,8 +269,8 @@ void ActionManager::initActions()
mACollection->addAction(QStringLiteral("korganizer_print_preview"), a); mACollection->addAction(QStringLiteral("korganizer_print_preview"), a);
} else { } else {
KStandardAction::open(this, SLOT(file_open()), mACollection); KStandardAction::open(this, SLOT(file_open()), mACollection);
KStandardAction::print(mCalendarView, SLOT(print()), mACollection); KStandardAction::print(mCalendarView, &CalendarView::print, mACollection);
KStandardAction::printPreview(mCalendarView, SLOT(printPreview()), mACollection); KStandardAction::printPreview(mCalendarView, &CalendarView::printPreview, mACollection);
} }
//~~~~~~~~~~~~~~~~~~~~~~~~ IMPORT / EXPORT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //~~~~~~~~~~~~~~~~~~~~~~~~ IMPORT / EXPORT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...@@ -336,9 +336,9 @@ void ActionManager::initActions() ...@@ -336,9 +336,9 @@ void ActionManager::initActions()
mRedoAction = mACollection->addAction(KStandardAction::Redo, QStringLiteral("korganizer_redo"), mRedoAction = mACollection->addAction(KStandardAction::Redo, QStringLiteral("korganizer_redo"),
history, SLOT(redo())); history, SLOT(redo()));
} else { } else {
mCutAction = KStandardAction::cut(mCalendarView, SLOT(edit_cut()), mACollection); mCutAction = KStandardAction::cut(mCalendarView, &CalendarView::edit_cut, mACollection);
mCopyAction = KStandardAction::copy(mCalendarView, SLOT(edit_copy()), mACollection); mCopyAction = KStandardAction::copy(mCalendarView, &CalendarView::edit_copy, mACollection);
pasteAction = KStandardAction::paste(mCalendarView, SLOT(edit_paste()), mACollection); pasteAction = KStandardAction::paste(mCalendarView, &CalendarView::edit_paste, mACollection);
mUndoAction = KStandardAction::undo(history, SLOT(undo()), mACollection); mUndoAction = KStandardAction::undo(history, SLOT(undo()), mACollection);
mRedoAction = KStandardAction::redo(history, SLOT(redo()), mACollection); mRedoAction = KStandardAction::redo(history, SLOT(redo()), mACollection);
} }
...@@ -709,7 +709,7 @@ void ActionManager::initActions() ...@@ -709,7 +709,7 @@ void ActionManager::initActions()
mACollection->addAction(KStandardAction::KeyBindings, QStringLiteral("korganizer_configure_shortcuts"), mACollection->addAction(KStandardAction::KeyBindings, QStringLiteral("korganizer_configure_shortcuts"),
this, SLOT(keyBindings())); this, SLOT(keyBindings()));
} else { } else {
KStandardAction::preferences(mCalendarView, SLOT(edit_options()), mACollection); KStandardAction::preferences(mCalendarView, &CalendarView::edit_options, mACollection);
KStandardAction::keyBindings(this, &ActionManager::keyBindings, mACollection); KStandardAction::keyBindings(this, &ActionManager::keyBindings, mACollection);
} }
} }
......
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