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 253 of file pokitproducts.cpp.
References QString::arg(), PokitPro::maxValue(), PokitMeter::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 233 of file pokitproducts.cpp.
References QString::arg(), PokitMeter, PokitPro, PokitPro::toString(), PokitMeter::toString(), and QCoreApplication::translate().
Referenced by MultimeterService::toString().