src/file.cpp

changeset 249
6b2cc2d82ba6
parent 248
4431371f3ffe
child 250
6e80f038e8df
equal deleted inserted replaced
248:4431371f3ffe 249:6b2cc2d82ba6
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 ()));

mercurial