| 137 | } |
| 138 | |
| 139 | void FramePlaybackObject::initialize() |
| 140 | { |
| 141 | if( mThread_p && (mThread_p != QThread::currentThread()) ) |
| 142 | { |
| 143 | /* move ourself to the thread */ |
| 144 | moveToThread(mThread_p); /*TODO handle errors */ |
| 145 | /* connect started() */ |
| 146 | connect(mThread_p, SIGNAL(started()), this, SLOT(initialize())); |
| 147 | /* start the thread */ |
| 148 | mThread_p->start(QThread::HighPriority); |
| 149 | return; |
| 150 | } |
| 151 | |
| 152 | /* set started flag */ |
| 153 | //mStarted = true; |
| 154 | |
| 155 | /* in multithread case, this will be called before entering thread event loop */ |
| 156 | return piStart(); |
| 157 | |
| 158 | } |
| 159 | |
| 160 | void FramePlaybackObject::finalize() |
| 161 | { |
no test coverage detected