Logo Search packages:      
Sourcecode: taskjuggler version File versions  Download package

bool Project::addTaskAttribute ( const QString &  id,
CustomAttributeDefinition *  cad 
)

This function adds a new, user-defined attribute to the Task attributes. The

Parameters:
id must be unique within the Task attributes namespace.
cad is a pointer to the CustomAttributeDefinition object.

Definition at line 316 of file Project.cpp.

{
    if (taskAttributes.find(id))
        return FALSE;

    taskAttributes.insert(id, cad);
    return TRUE;
}


Generated by  Doxygen 1.6.0   Back to index