Changeset View
Changeset View
Standalone View
Standalone View
src/kontactplugin/korganizer/journalplugin.cpp
Show All 23 Lines | |||||
24 | 24 | | |||
25 | #include "journalplugin.h" | 25 | #include "journalplugin.h" | ||
26 | #include "calendarinterface.h" | 26 | #include "calendarinterface.h" | ||
27 | #include "korg_uniqueapp.h" | 27 | #include "korg_uniqueapp.h" | ||
28 | 28 | | |||
29 | #include <KontactInterface/Core> | 29 | #include <KontactInterface/Core> | ||
30 | 30 | | |||
31 | #include <KActionCollection> | 31 | #include <KActionCollection> | ||
32 | #include <KIconLoader> | | |||
33 | #include <KLocalizedString> | 32 | #include <KLocalizedString> | ||
34 | #include "korganizerplugin_debug.h" | 33 | #include "korganizerplugin_debug.h" | ||
35 | #include <QAction> | 34 | #include <QAction> | ||
36 | #include <QIcon> | 35 | #include <QIcon> | ||
37 | 36 | | |||
38 | EXPORT_KONTACT_PLUGIN(JournalPlugin, journal) | 37 | EXPORT_KONTACT_PLUGIN(JournalPlugin, journal) | ||
39 | 38 | | |||
40 | JournalPlugin::JournalPlugin(KontactInterface::Core *core, const QVariantList &) | 39 | JournalPlugin::JournalPlugin(KontactInterface::Core *core, const QVariantList &) | ||
41 | : KontactInterface::Plugin(core, core, "korganizer", "journal") | 40 | : KontactInterface::Plugin(core, core, "korganizer", "journal") | ||
42 | , mIface(nullptr) | 41 | , mIface(nullptr) | ||
43 | { | 42 | { | ||
44 | setComponentName(QStringLiteral("korganizer"), i18n("KOrganizer")); | 43 | setComponentName(QStringLiteral("korganizer"), i18n("KOrganizer")); | ||
45 | 44 | | |||
46 | KIconLoader::global()->addAppDir(QStringLiteral("korganizer")); | | |||
47 | | ||||
48 | QAction *action | 45 | QAction *action | ||
49 | = new QAction(QIcon::fromTheme(QStringLiteral("journal-new")), | 46 | = new QAction(QIcon::fromTheme(QStringLiteral("journal-new")), | ||
50 | i18nc("@action:inmenu", "New Journal..."), this); | 47 | i18nc("@action:inmenu", "New Journal..."), this); | ||
51 | actionCollection()->addAction(QStringLiteral("new_journal"), action); | 48 | actionCollection()->addAction(QStringLiteral("new_journal"), action); | ||
52 | actionCollection()->setDefaultShortcut(action, QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_J)); | 49 | actionCollection()->setDefaultShortcut(action, QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_J)); | ||
53 | QString str = i18nc("@info:status", "Create a new journal"); | 50 | QString str = i18nc("@info:status", "Create a new journal"); | ||
54 | action->setStatusTip(str); | 51 | action->setStatusTip(str); | ||
55 | action->setToolTip(str); | 52 | action->setToolTip(str); | ||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |