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

bool Project::addId ( const QString &  i,
bool  changeCurrentId = TRUE 

Projects have at least one ID, but can have multiple IDs. This usually happens when projects are composed of serveral sub-projects. Each sub projects brings its own unique ID. Each ID must be registered with the project by calling addId(). The most recently added ID is also the current ID. All subsequently added tasks are associtated with this project ID. So, you have to add at least one ID before you add any tasks.

Definition at line 249 of file Project.cpp.

References projectIDs.

Referenced by ProjectFile::parse().

    if (projectIDs.findIndex(id) != -1)
        return FALSE;

    if (changeCurrentId)
        currentId = id;

    return TRUE;

Generated by  Doxygen 1.6.0   Back to index