implemented saving UI
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).
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#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();
|
||||
}
|
||||
Reference in New Issue
Block a user