Commit 54b64a52 authored by Jan Möbius's avatar Jan Möbius

Return a list of ; separated strings for the updateTpye to string conversion

parent 3b2f9768
......@@ -274,7 +274,24 @@ QString updateTypeName(UpdateType _id) {
#ifdef DEBUG
std::cerr << "Unable to retrieve updateTypeName" << std::endl;
#endif
return "Unknown";
QString type = "";
for ( size_t i = 0; i < updateTypeCount(); ++i ) {
if ( _id.contains(UpdateType(UpdateTypeSet(1) << i)) ) {
std::map<UpdateType, QString>::iterator partName = updateTypeToString.find(UpdateType(UpdateTypeSet(1) << i));
if ( partName != updateTypeToString.end() ) {
type += partName->second + ";";
} else {
type += "Unknown;";
}
}
}
// Remove the last ;
type.left(type.length()-1);
return type;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment