| 104 | } |
| 105 | |
| 106 | void AxisWidget::setLogScale(bool is_log) |
| 107 | { |
| 108 | if (is_log_ != is_log) |
| 109 | { |
| 110 | is_log_ = is_log; |
| 111 | |
| 112 | if (is_log_) |
| 113 | { |
| 114 | setAxisBounds(min_, max_); |
| 115 | } |
| 116 | else |
| 117 | { |
| 118 | setAxisBounds(log2linear(min_), log2linear(max_)); |
| 119 | } |
| 120 | update(); |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | bool AxisWidget::isLogScale() const |
| 125 | { |
no test coverage detected