| 133 | } |
| 134 | |
| 135 | void 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 | |
| 152 | QString os::getDocumentsPath() |
| 153 | { |
nothing calls this directly
no outgoing calls
no test coverage detected