* Called when the pattern has changed. This method * sets the current pattern to the value chosen. */
| 92 | * sets the current pattern to the value chosen. |
| 93 | */ |
| 94 | void QG_PatternBox::slotPatternChanged(int index) { |
| 95 | |
| 96 | RS_DEBUG->print("QG_PatternBox::slotPatternChanged %d\n", index); |
| 97 | |
| 98 | currentPattern = RS_PATTERNLIST->requestPattern(currentText()); |
| 99 | |
| 100 | if (currentPattern) { |
| 101 | RS_DEBUG->print("Current pattern is (%d): %s\n", |
| 102 | index, currentPattern->getFileName().toLatin1().data()); |
| 103 | } |
| 104 | |
| 105 | |
| 106 | emit patternChanged(); |
| 107 | } |
| 108 | |
| 109 |
nothing calls this directly
no test coverage detected