MCPcopy Create free account
hub / github.com/Sonic-DE/sonic-win / run

Method run

src/scripting/scripting.cpp:165–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void KWin::Script::run()
166{
167 if (running() || m_starting) {
168 return;
169 }
170
171 if (calledFromDBus()) {
172 m_invocationContext = message();
173 setDelayedReply(true);
174 }
175
176 m_starting = true;
177 QFutureWatcher<QByteArray> *watcher = new QFutureWatcher<QByteArray>(this);
178 connect(watcher, &QFutureWatcherBase::finished, this, &Script::slotScriptLoadedFromFile);
179 watcher->setFuture(QtConcurrent::run(&KWin::Script::loadScriptFromFile, this, fileName()));
180}
181
182QByteArray KWin::Script::loadScriptFromFile(const QString &fileName)
183{

Callers 1

runScriptsMethod · 0.45

Calls 2

runningFunction · 0.85
fileNameFunction · 0.85

Tested by

no test coverage detected