Changeset View
Changeset View
Standalone View
Standalone View
src/kontactplugin/korganizer/korganizerplugin.cpp
Show All 36 Lines | |||||
37 | #include <KCalUtils/ICalDrag> | 37 | #include <KCalUtils/ICalDrag> | ||
38 | 38 | | |||
39 | #include <KontactInterface/Core> | 39 | #include <KontactInterface/Core> | ||
40 | 40 | | |||
41 | #include <QAction> | 41 | #include <QAction> | ||
42 | #include <KActionCollection> | 42 | #include <KActionCollection> | ||
43 | #include "korganizerplugin_debug.h" | 43 | #include "korganizerplugin_debug.h" | ||
44 | #include <QIcon> | 44 | #include <QIcon> | ||
45 | #include <KIconLoader> | | |||
46 | #include <KLocalizedString> | 45 | #include <KLocalizedString> | ||
47 | #include <KMessageBox> | 46 | #include <KMessageBox> | ||
48 | #include <QTemporaryFile> | 47 | #include <QTemporaryFile> | ||
49 | 48 | | |||
50 | #include <QDropEvent> | 49 | #include <QDropEvent> | ||
51 | #include <QStandardPaths> | 50 | #include <QStandardPaths> | ||
52 | 51 | | |||
53 | EXPORT_KONTACT_PLUGIN(KOrganizerPlugin, korganizer) | 52 | EXPORT_KONTACT_PLUGIN(KOrganizerPlugin, korganizer) | ||
54 | 53 | | |||
55 | KOrganizerPlugin::KOrganizerPlugin(KontactInterface::Core *core, const QVariantList &) | 54 | KOrganizerPlugin::KOrganizerPlugin(KontactInterface::Core *core, const QVariantList &) | ||
56 | : KontactInterface::Plugin(core, core, "korganizer", "calendar") | 55 | : KontactInterface::Plugin(core, core, "korganizer", "calendar") | ||
57 | , mIface(nullptr) | 56 | , mIface(nullptr) | ||
58 | { | 57 | { | ||
59 | setComponentName(QStringLiteral("korganizer"), i18n("KOrganizer")); | 58 | setComponentName(QStringLiteral("korganizer"), i18n("KOrganizer")); | ||
60 | KIconLoader::global()->addAppDir(QStringLiteral("korganizer")); | | |||
61 | 59 | | |||
62 | QAction *action | 60 | QAction *action | ||
63 | = new QAction(QIcon::fromTheme(QStringLiteral("appointment-new")), | 61 | = new QAction(QIcon::fromTheme(QStringLiteral("appointment-new")), | ||
64 | i18nc("@action:inmenu", "New Event..."), this); | 62 | i18nc("@action:inmenu", "New Event..."), this); | ||
65 | actionCollection()->addAction(QStringLiteral("new_event"), action); | 63 | actionCollection()->addAction(QStringLiteral("new_event"), action); | ||
66 | actionCollection()->setDefaultShortcut(action, QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_E)); | 64 | actionCollection()->setDefaultShortcut(action, QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_E)); | ||
67 | QString str = i18nc("@info:status", "Create a new event"); | 65 | QString str = i18nc("@info:status", "Create a new event"); | ||
68 | action->setStatusTip(str); | 66 | action->setStatusTip(str); | ||
▲ Show 20 Lines • Show All 164 Lines • Show Last 20 Lines |