268 QObject::connect (loaderThread, SIGNAL (finished ()), loader, SLOT (deleteLater ())); |
268 QObject::connect (loaderThread, SIGNAL (finished ()), loader, SLOT (deleteLater ())); |
269 loader->moveToThread (loaderThread); |
269 loader->moveToThread (loaderThread); |
270 loaderThread->start (); |
270 loaderThread->start (); |
271 |
271 |
272 // Now create a progress dialog for the operation |
272 // Now create a progress dialog for the operation |
273 OpenFileDialog* dlg = new OpenFileDialog (g_win); |
273 OpenProgressDialog* dlg = new OpenProgressDialog (g_win); |
274 dlg->setFileName ("???"); |
|
275 dlg->setNumLines (numLines); |
274 dlg->setNumLines (numLines); |
276 |
275 |
277 // Connect the loader in so we can actually show updates |
276 // Connect the loader in so we can actually show updates |
278 QObject::connect (loader, SIGNAL (progressUpdate (int)), dlg, SLOT (updateProgress (int))); |
277 QObject::connect (loader, SIGNAL (progressUpdate (int)), dlg, SLOT (updateProgress (int))); |
279 QObject::connect (loader, SIGNAL (workDone ()), dlg, SLOT (accept ())); |
278 QObject::connect (loader, SIGNAL (workDone ()), dlg, SLOT (accept ())); |