| 337 // which called the file loader. It will keep processing the event loop |
337 // which called the file loader. It will keep processing the event loop |
| 338 // until we're ready (see loadFileContents), thus the event loop will |
338 // until we're ready (see loadFileContents), thus the event loop will |
| 339 // eventually catch the invokation we throw here and send us back. Though |
339 // eventually catch the invokation we throw here and send us back. Though |
| 340 // it's not technically recursion anymore, more like a for loop. :P |
340 // it's not technically recursion anymore, more like a for loop. :P |
| 341 if (concurrent()) |
341 if (concurrent()) |
| 342 QMetaObject::invokeMethod (this, "work", Qt::QueuedConnection, Q_ARG (int, i + 1)); |
342 QMetaObject::invokeMethod (this, "work", Qt::QueuedConnection, Q_ARG (int, i)); |
| 343 else |
343 else |
| 344 work (i + 1); |
344 work (i + 1); |
| 345 } |
345 } |
| 346 } |
346 } |
| 347 |
347 |