connect(pRestartLevelAction,SIGNAL(triggered()),this,SLOT(restartLevel()));
menuBar()->addAction(pRestartLevelAction);
+ QAction * pRestartGameAction = new QAction(tr("Restart game"),this);
+ addAction(pRestartGameAction);
+ connect(pRestartGameAction,SIGNAL(triggered()),this,SLOT(restartGame()));
+ menuBar()->addAction(pRestartGameAction);
+
QAction * pVibrateAction = new QAction(tr("Vibration effects"),this);
pVibrateAction->setCheckable(true);
addAction(pVibrateAction);
connect(pAboutAction,SIGNAL(triggered()),this,SLOT(about()));
menuBar()->addAction(pAboutAction);
- QAction * pRestartGameAction = new QAction(tr("Restart game"),this);
- addAction(pRestartGameAction);
- connect(pRestartGameAction,SIGNAL(triggered()),this,SLOT(restartGame()));
- menuBar()->addAction(pRestartGameAction);
+
Level level1(5,10);
levelList_.append(level1);
Level level2(5,10,2,50);
levelList_.append(level2);
- Level level3(5,15,3,50);
+ Level level3(5,15,2,50);
levelList_.append(level3);
- Level level4(5,15,5,50);
+ Level level4(5,15,4,50);
levelList_.append(level4);
Level level5(5,15,5,100);
levelList_.append(level5);