* Sets the currently selected width item to the given width. */
| 73 | * Sets the currently selected width item to the given width. |
| 74 | */ |
| 75 | void QG_PatternBox::setPattern(const QString& pName) { |
| 76 | |
| 77 | RS_DEBUG->print("QG_PatternBox::setPattern %s\n", pName.toLatin1().data()); |
| 78 | |
| 79 | setCurrentIndex(findText(pName)); |
| 80 | |
| 81 | slotPatternChanged(currentIndex()); |
| 82 | } |
| 83 | |
| 84 | std::shared_ptr<RS_Pattern> QG_PatternBox::getPattern() { |
| 85 | if (currentPattern == nullptr || currentPattern->countDeep()==0) |
no test coverage detected