MCPcopy Create free account
hub / github.com/TeXworks/texworks / getDefaultEngine

Method getDefaultEngine

src/TWApp.cpp:1178–1187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1176}
1177
1178const Engine TWApp::getDefaultEngine()
1179{
1180 const QList<Engine> engines = getEngineList();
1181 if (defaultEngineIndex < engines.count())
1182 return engines[defaultEngineIndex];
1183 defaultEngineIndex = 0;
1184 if (engines.empty())
1185 return Engine();
1186 return engines[0];
1187}
1188
1189void TWApp::setDefaultEngine(const QString& name)
1190{

Callers 3

initMethod · 0.80
updateEngineListMethod · 0.80
foreachFunction · 0.80

Calls 1

EngineClass · 0.70

Tested by

no test coverage detected