MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / setIndentSize

Method setIndentSize

MiniZincIDE/codeeditor.cpp:167–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167void CodeEditor::setIndentSize(int size)
168{
169 indentSize = size;
170 QFontMetrics metrics(font());
171 setTabStopDistance(metrics.horizontalAdvance(' ') * size);
172}
173
174Highlighter& CodeEditor::getHighlighter() {
175 return *highlighter;

Callers 1

setEditorIndentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected