| 14 |
|
myWizard.setWindowIcon(QIcon(":/new/icons/package.png")); |
| 15 |
|
|
| 16 |
|
//Center and resize QWizard (http://www.thedazzlersinc.com/source/2012/06/04/qt-center-window-in-screen/) |
| 17 |
+ |
#ifdef Q_OS_WIN |
| 18 |
|
myWizard.resize(640,480); |
| 19 |
+ |
#else |
| 20 |
+ |
myWizard.resize(800,600); // Mac OS pcs should be able to render this resolution without any problem. It's also better |
| 21 |
+ |
// because the components on mac use more space |
| 22 |
+ |
#endif |
| 23 |
|
QRect position = myWizard.frameGeometry(); |
| 24 |
|
position.moveCenter(QDesktopWidget().availableGeometry().center()); |
| 25 |
|
myWizard.move(position.topLeft()); |
| 204 |
|
} |
| 205 |
|
} |
| 206 |
|
QDir().mkpath(path); //create path if doesn't exist |
| 207 |
< |
if(!Util::cpDir(sourceFolder,path+Util::cutName(sourceFolder))){//copy contents (creates dest destination automatically if not exists yet) |
| 208 |
< |
QString errorString="An error occurred while copping the folder/files to the package folder: \n" |
| 207 |
> |
if(!Util::copyDir(sourceFolder,path+Util::cutName(sourceFolder),false)){//copy contents (creates dest destination automatically if not exists yet) |
| 208 |
> |
QString errorString="An error occurred while copying the folder/files to the package folder: \n" |
| 209 |
|
"Copying from "+sourceFolder+"\n to "+path+Util::cutName(sourceFolder); |
| 210 |
|
Util::showErrorLogPopUp(errorString); |
| 211 |
|
this->myLogger->writeString(errorString); |