MCPcopy Create free account
hub / github.com/ckaiser/Lightscreen / effect

Method effect

tools/os.cpp:135–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void os::effect(QObject *target, const char *slot, int frames, int duration, const char *cleanup)
136{
137 QTimeLine *timeLine = new QTimeLine(duration);
138 timeLine->setFrameRange(0, frames);
139
140 timeLine->connect(timeLine, SIGNAL(frameChanged(int)), target, slot);
141
142 if (cleanup != 0) {
143 timeLine->connect(timeLine, SIGNAL(finished()), target, SLOT(cleanup()));
144 }
145
146 timeLine->connect(timeLine, SIGNAL(finished()), timeLine, SLOT(deleteLater()));
147
148
149 timeLine->start();
150}
151
152QString os::getDocumentsPath()
153{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected