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

QString Project::getIdIndex ( const QString &  i  )  const

Returns a string ID of the index of the passed ID in the project ID. The first ID in the list is returned as "A", the second as "B". The 27th is "AA" and so on.

Definition at line 263 of file Project.cpp.

References projectIDs.

    int idx;
    if ((idx = projectIDs.findIndex(i)) == -1)
        return QString("?");
    QString idxStr;
        idxStr = QChar('A' + idx % ('Z' - 'A')) + idxStr;
        idx /= 'Z' - 'A';
    } while (idx > 'Z' - 'A');

    return idxStr;

Generated by  Doxygen 1.6.0   Back to index