MCPcopy Create free account
hub / github.com/LibreCAD/LibreCAD / setPattern

Method setPattern

librecad/src/ui/qg_patternbox.cpp:75–82  ·  view source on GitHub ↗

* Sets the currently selected width item to the given width. */

Source from the content-addressed store, hash-verified

73 * Sets the currently selected width item to the given width.
74 */
75void 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
84std::shared_ptr<RS_Pattern> QG_PatternBox::getPattern() {
85 if (currentPattern == nullptr || currentPattern->countDeep()==0)

Callers 4

slotUpdateBlockListMethod · 0.45
slotUpdateLayerListMethod · 0.45
setFilteringRegexpMethod · 0.45
setFilteringRegexpMethod · 0.45

Calls 2

printMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected