MCPcopy Create free account
hub / github.com/KDE/kdevelop / wait

Method wait

kdevplatform/tests/kdevsignalspy.cpp:24–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24bool KDevSignalSpy::wait(int timeout)
25{
26 Q_ASSERT(!m_loop->isRunning()); Q_ASSERT(!m_timer->isActive());
27
28 m_emitted = false;
29 if (timeout > 0) {
30 connect(m_timer, &QTimer::timeout, m_loop, &QEventLoop::quit);
31 m_timer->setSingleShot(true);
32 m_timer->start(timeout);
33 }
34 m_loop->exec();
35
36 return m_emitted;
37}
38
39void KDevSignalSpy::signalEmitted()
40{

Callers 15

initTestCaseMethod · 0.80
reopenWhileLoadingMethod · 0.80
joinMethod · 0.80
~CodeCompletionModelMethod · 0.80
loadProjectFunction · 0.80
relockMethod · 0.80
doItMethod · 0.80
~ParsingThreadMethod · 0.80
benchCodeCompletionMethod · 0.80
testBuildDirectoryMethod · 0.80

Calls 4

execMethod · 0.80
isRunningMethod · 0.45
isActiveMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected