src/qt/coincontroldialog.cpp
// helper function, return human readable label for priority number
helper function, return human readable label for priority number
helper function return human readable label for priority number
QString CoinControlDialog::getPriorityLabel(double dPriority)
{
    if (CTransaction::AllowFree(dPriority)) 
    {
        if      (CTransaction::AllowFree(dPriority / 10000))  return tr("highest");
        else if (CTransaction::AllowFree(dPriority / 1000))   return tr("high");
        else if (CTransaction::AllowFree(dPriority / 100))    return tr("medium-high");
        else                                    return tr("medium");
    }
    else
    {
        if      (CTransaction::AllowFree(dPriority * 100))    return tr("low-medium");
        else if (CTransaction::AllowFree(dPriority * 10000))  return tr("low");
        else                                    return tr("lowest");
    }
}
QString CoinControlDialog :: getPriorityLabel ( double dPriority ) { if ( CTransaction :: AllowFree ( dPriority ) ) { if ( CTransaction :: AllowFree ( dPriority / 10000 ) ) return tr ( " " ) ; else if ( CTransaction :: AllowFree ( dPriority / 1000 ) ) return tr ( " " ) ; else if ( CTransaction :: AllowFree ( dPriority / 100 ) ) return tr ( " " ) ; else return tr ( " " ) ; } else { if ( CTransaction :: AllowFree ( dPriority * 100 ) ) return tr ( " " ) ; else if ( CTransaction :: AllowFree ( dPriority * 10000 ) ) return tr ( " " ) ; else return tr ( " " ) ; } }
helper function, return human readable label for priority number
helper function return human readable label for priority number
// at least medium