! Checks, whether the specified range is within valid bounds, which are defined as QCPRange::maxRange and QCPRange::minRange. A valid range means: \li range bounds within -maxRange and maxRange \li range size above minRange \li range size below maxRange */
| 2099 | \li range size below maxRange |
| 2100 | */ |
| 2101 | bool QCPRange::validRange(double lower, double upper) |
| 2102 | { |
| 2103 | return (lower > -maxRange && |
| 2104 | upper < maxRange && |
| 2105 | qAbs(lower-upper) > minRange && |
| 2106 | qAbs(lower-upper) < maxRange && |
| 2107 | !(lower > 0 && qIsInf(upper/lower)) && |
| 2108 | !(upper < 0 && qIsInf(lower/upper))); |
| 2109 | } |
| 2110 | |
| 2111 | /*! |
| 2112 | \overload |
nothing calls this directly
no outgoing calls
no test coverage detected