예제 #1
0
// ---------------------------------
//virtual
QString  MTEditDetails::GetCustomTabName(int nTab)
{
    const int nCustomTabCount = this->GetCustomTabCount();
    // -----------------------------
    if ((nTab < 0) || (nTab >= nCustomTabCount))
        return QString(""); // out of bounds.
    // -----------------------------
    QString qstrReturnValue("");
    // -----------------------------
    switch (nTab)
    {
    default:
        qDebug() << "Unexpected: MTEditDetails::GetCustomTabName was called instead of overridden version of same method.";
        return QString("");
    }
    // -----------------------------
    return qstrReturnValue;
}
예제 #2
0
// ---------------------------------
//virtual
QString  MTAssetDetails::GetCustomTabName(int nTab)
{
    const int nCustomTabCount = this->GetCustomTabCount();
    // -----------------------------
    if ((nTab < 0) || (nTab >= nCustomTabCount))
        return QString(""); // out of bounds.
    // -----------------------------
    QString qstrReturnValue("");
    // -----------------------------
    switch (nTab)
    {
    case 0:  qstrReturnValue = "Asset Contract";  break;

    default:
        qDebug() << QString("Unexpected: MTAssetDetails::GetCustomTabName was called with bad index: %1").arg(nTab);
        return QString("");
    }
    // -----------------------------
    return qstrReturnValue;
}