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

Method addConnector

MiniZincIDE/server.cpp:230–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230VisConnector* Server::addConnector(const QString& label, const QStringList& roots)
231{
232 auto* c = new VisConnector(this);
233 c->_label = label;
234 c->_roots = roots;
235 c->_url.setScheme("http");
236 c->_url.setHost(address());
237 c->_url.setPort(port());
238 c->_url.setPath(QString("/%1").arg(connectors.size()));
239 connectors << c;
240 return c;
241}
242
243void Server::clear()
244{

Callers 1

startVisualisationMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected