From d0300cd0532ccd49cd7cf6aaf3c267997d8e8db8 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Wed, 26 Oct 2005 17:46:42 +0000 Subject: [PATCH] apidox svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=474550 --- libscience/tempunit.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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 ); /** -- 2.47.3