QString RequirementReference::getTitle() const
{
    Requirement *source = getSource();

    QString title = "[LINK] %1";
    if(source){
        title = title.arg(source->getTitle());
    }
    else{
        title = title.arg("UNRESOLVED");
    }

    return title;
}
QString RequirementReference::getNumberedTitle() const
{
    QString idString;
    if(settings->idIsVisible()){
        idString = QString("[%1] ").arg(id, 3, 10, QChar('0'));
    }

    QString title = "UNRESOLVED";

    Requirement *source = getSource();
    if(source){
        title = source->getTitle();
    }

    return QString("%1 %2[LINK] %3")
            .arg(number())
            .arg(idString)
            .arg(title);
}