Changeset View
Changeset View
Standalone View
Standalone View
addons/snippets/snippet.cpp
Show All 28 Lines | |||||
29 | 29 | | |||
30 | #include <KLocalizedString> | 30 | #include <KLocalizedString> | ||
31 | #include <KColorScheme> | 31 | #include <KColorScheme> | ||
32 | #include <KActionCollection> | 32 | #include <KActionCollection> | ||
33 | 33 | | |||
34 | #include <QAction> | 34 | #include <QAction> | ||
35 | 35 | | |||
36 | Snippet::Snippet() | 36 | Snippet::Snippet() | ||
37 | : QStandardItem(i18n("<empty snippet>")), m_action(nullptr) | 37 | : QStandardItem(i18n("<empty snippet>")) | ||
38 | { | 38 | { | ||
39 | setIcon(QIcon::fromTheme(QStringLiteral("text-plain"))); | 39 | setIcon(QIcon::fromTheme(QStringLiteral("text-plain"))); | ||
40 | } | 40 | } | ||
41 | 41 | | |||
42 | Snippet::~Snippet() | 42 | Snippet::~Snippet() | ||
43 | { | 43 | { | ||
44 | delete m_action; | 44 | delete m_action; | ||
45 | } | 45 | } | ||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |