From: Pino Toscano Date: Wed, 26 Oct 2005 17:46:42 +0000 (+0000) Subject: apidox X-Git-Tag: v3.80.2~250 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=d0300cd0532ccd49cd7cf6aaf3c267997d8e8db8;p=libqmvoc.git apidox svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=474550 --- diff --git a/libscience/tempunit.h b/libscience/tempunit.h index db4c366..8ba318c 100644 --- a/libscience/tempunit.h +++ b/libscience/tempunit.h @@ -36,11 +36,16 @@ class TempUnit { public: - enum Unit { Kelvin = 0, - Celsius, + /** + * All the temperature units we support. + */ + enum Unit + { + Kelvin = 0, + Celsius, Fahrenheit, Rankine, - Reaumur + Reaumur }; /** @@ -81,6 +86,10 @@ class TempUnit */ static QString unitListSymbol( int i ); + /** + * @return a QPair with the minimum and the maximum value + * (resp. in .first and .second) allowed for the unit @p u. + */ static QPair rangeForUnit( TempUnit::Unit u ); /**