| 95 | } |
| 96 | |
| 97 | void |
| 98 | KnobInt::setIncrement(int incr, |
| 99 | int index) |
| 100 | { |
| 101 | if (incr <= 0) { |
| 102 | qDebug() << "Attempting to set the increment of an int param to a value lesser or equal to 0"; |
| 103 | |
| 104 | return; |
| 105 | } |
| 106 | |
| 107 | if ( index >= (int)_increments.size() ) { |
| 108 | throw std::runtime_error("KnobInt::setIncrement , dimension out of range"); |
| 109 | } |
| 110 | _increments[index] = incr; |
| 111 | Q_EMIT incrementChanged(_increments[index], index); |
| 112 | } |
| 113 | |
| 114 | void |
| 115 | KnobInt::setIncrement(const std::vector<int> &incr) |
no test coverage detected