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

Method slotPatternChanged

librecad/src/ui/qg_patternbox.cpp:94–107  ·  view source on GitHub ↗

* Called when the pattern has changed. This method * sets the current pattern to the value chosen. */

Source from the content-addressed store, hash-verified

92 * sets the current pattern to the value chosen.
93 */
94void 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

Callers

nothing calls this directly

Calls 4

requestPatternMethod · 0.80
printMethod · 0.45
dataMethod · 0.45
getFileNameMethod · 0.45

Tested by

no test coverage detected