Dokit
Internal development documentation
|
Encapsulates convenience functions for working with resistance ranges. More...
Functions | |
QString | toString (const PokitProduct product, const quint8 range) |
Returns product's current range as a human-friendly string. | |
QVariant | maxValue (const PokitProduct product, const quint8 range) |
Returns the maximum value for product's range in (integer) ohms, or the string "Auto". | |
Encapsulates convenience functions for working with resistance ranges.
QTPOKIT_EXPORT QVariant ResistanceRange::maxValue | ( | const PokitProduct | product, |
const quint8 | range ) |
Returns the maximum value for product's range in (integer) ohms, or the string "Auto".
If range is not a known valid value, then an null QVariant is returned.
Definition at line 247 of file pokitproducts.cpp.
References QString::arg(), PokitMeter::maxValue(), PokitPro::maxValue(), PokitMeter, PokitPro, and QCoreApplication::translate().
Referenced by MultimeterService::maxValue().
QTPOKIT_EXPORT QString ResistanceRange::toString | ( | const PokitProduct | product, |
const quint8 | range ) |
Returns product's current range as a human-friendly string.
Definition at line 227 of file pokitproducts.cpp.
References QString::arg(), PokitMeter, PokitPro, PokitMeter::toString(), PokitPro::toString(), and QCoreApplication::translate().
Referenced by MultimeterService::toString().