| 21 |  | this->myWizard->setWindowIcon(QIcon(":/new/icons/sound.png")); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 22 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 23 |  | //Center and resize QWizard (http://www.thedazzlersinc.com/source/2012/06/04/qt-center-window-in-screen/) | 
 
 
 
 
 
 
 
 | 24 | + | #ifdef Q_WS_WIN | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 25 |  | this->myWizard->resize(640,480); | 
 
 
 
 
 
 
 
 | 26 | + | #else | 
 
 
 
 
 
 
 
 | 27 | + | this->myWizard->resize(800,600); // Mac OS pcs should be able to render this resolution without any problem. It's also better | 
 
 
 
 
 
 
 
 | 28 | + | // because the components on mac use more space | 
 
 
 
 
 
 
 
 | 29 | + | #endif | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 30 |  | QRect position = this->myWizard->frameGeometry(); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 31 |  | position.moveCenter(QDesktopWidget().availableGeometry().center()); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 32 |  | this->myWizard->move(position.topLeft()); |