Changeset View
Changeset View
Standalone View
Standalone View
commands/imagelib/effects/kpEffectBlurSharpenCommand.cpp
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | |||||
50 | 50 | | |||
51 | 51 | | |||
52 | // public static | 52 | // public static | ||
53 | QString kpEffectBlurSharpenCommand::nameForType (kpEffectBlurSharpen::Type type) | 53 | QString kpEffectBlurSharpenCommand::nameForType (kpEffectBlurSharpen::Type type) | ||
54 | { | 54 | { | ||
55 | switch (type) { | 55 | switch (type) { | ||
56 | case kpEffectBlurSharpen::Blur: return i18n ("Soften"); | 56 | case kpEffectBlurSharpen::Blur: return i18n ("Soften"); | ||
57 | case kpEffectBlurSharpen::Sharpen: return i18n ("Sharpen"); | 57 | case kpEffectBlurSharpen::Sharpen: return i18n ("Sharpen"); | ||
58 | default: return QString(); | 58 | default: return {}; | ||
59 | } | 59 | } | ||
60 | } | 60 | } | ||
61 | 61 | | |||
62 | 62 | | |||
63 | // protected virtual [base kpEffectCommandBase] | 63 | // protected virtual [base kpEffectCommandBase] | ||
64 | kpImage kpEffectBlurSharpenCommand::applyEffect (const kpImage &image) | 64 | kpImage kpEffectBlurSharpenCommand::applyEffect (const kpImage &image) | ||
65 | { | 65 | { | ||
66 | return kpEffectBlurSharpen::applyEffect (image, m_type, m_strength); | 66 | return kpEffectBlurSharpen::applyEffect (image, m_type, m_strength); | ||
67 | } | 67 | } | ||
68 | 68 | |