MCPcopy Create free account
hub / github.com/KDE/kdevelop / functionPropertiesToString

Function functionPropertiesToString

plugins/filetemplates/overridespage.cpp:46–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46static QString functionPropertiesToString(ClassFunctionDeclaration* decl)
47{
48 Q_ASSERT(decl);
49 QStringList properties;
50 if (decl->isConstructor()) {
51 properties << i18nc("@item function property", "Constructor");
52 } else if (decl->isDestructor()) {
53 properties << i18nc("@item function property", "Destructor");
54 } else if (decl->isSignal()) {
55 properties << i18nc("@item function property", "Signal");
56 } else if (decl->isSlot()) {
57 properties << i18nc("@item function property", "Slot");
58 } else if (decl->isAbstract()) {
59 properties << i18nc("@item function property", "Abstract function");
60 }
61 return properties.join(QLatin1String(", "));
62}
63
64struct KDevelop::OverridesPagePrivate
65{

Callers 1

addPotentialOverrideMethod · 0.85

Calls 6

isConstructorMethod · 0.80
isDestructorMethod · 0.80
isSignalMethod · 0.80
isSlotMethod · 0.80
isAbstractMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected