| 55 | } |
| 56 | |
| 57 | void MultiGradient::insert(double position, QColor color) |
| 58 | { |
| 59 | if (position >= 0 && position <= 100) |
| 60 | { |
| 61 | pos_col_[position] = std::move(color); |
| 62 | } |
| 63 | else |
| 64 | { |
| 65 | throw InvalidRange(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION); |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | UInt MultiGradient::position(UInt index) |
| 70 | { |
no outgoing calls