| 54 | } |
| 55 | |
| 56 | void SelectionRatioSourcePrivate::selectionChanged() |
| 57 | { |
| 58 | if (!previousValue.isEmpty() && lastChangeTime.elapsed() > 1000) { |
| 59 | ratioSet[previousValue] += lastChangeTime.elapsed() / 1000; |
| 60 | } |
| 61 | |
| 62 | lastChangeTime.start(); |
| 63 | previousValue = selectedValue(); |
| 64 | } |
| 65 | |
| 66 | QString SelectionRatioSourcePrivate::selectedValue() const |
| 67 | { |
no test coverage detected