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

Method startExecution

MiniZincIDE/outputwidget.cpp:128–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void OutputWidget::startExecution(const QString& label)
129{
130 _checkerOutput.clear();
131
132 TextLayoutLock lock(this);
133 auto c = ui->textBrowser->textCursor();
134 c.movePosition(QTextCursor::End);
135
136 // Create table containing heading
137 auto* table = c.insertTable(1, 3, _headerTableFormat);
138
139 auto leftSideCursor = table->cellAt(0, 0).firstCursorPosition();
140 leftSideCursor.insertText(QString(QChar::ObjectReplacementCharacter), _arrowFormat);
141
142 auto headerCursor = table->cellAt(0, 1).firstCursorPosition();
143 headerCursor.insertText(label, noticeCharFormat());
144
145 auto rightSideCursor = table->cellAt(0, 2).firstCursorPosition();
146 rightSideCursor.setBlockFormat(_rightAlignBlockFormat);
147 _statusCursor = rightSideCursor;
148
149 // Create frame which will contain children
150 c.movePosition(QTextCursor::End);
151 _frame = c.insertFrame(_frameFormat);
152
153 _hadServerUrl = false;
154
155 _solutionCount = 0;
156 _effectiveSolutionLimit = _solutionLimit;
157}
158
159void OutputWidget::associateProfilerExecution(int executionId)
160{

Callers 3

compileMethod · 0.80
runMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected