| 44 | } |
| 45 | |
| 46 | static 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 | |
| 64 | struct KDevelop::OverridesPagePrivate |
| 65 | { |
no test coverage detected