Implemented the file dialog, save progress dialog, and separate thread to save in (saving needs to be done in a separate thread so the main/GUI thread doesn't get blocked).
23 lines
289 B
C++
23 lines
289 B
C++
#include "projectsavemanager.h"
|
|
|
|
ProjectSaveManager::ProjectSaveManager(Project *project) :
|
|
project_(project)
|
|
{
|
|
|
|
}
|
|
|
|
void ProjectSaveManager::Start()
|
|
{
|
|
int prog = 0;
|
|
|
|
do {
|
|
prog += 10;
|
|
|
|
emit ProgressChanged(prog);
|
|
|
|
Sleep(200);
|
|
} while (prog < 100);
|
|
|
|
emit Finished();
|
|
}
|