X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=mainwindow.cpp;h=4191aca23f3d4260e792b0de6cc986dd7287119a;hb=eddc1ffd564cce990285909b8575726e5252a8e7;hp=618446f082219d432faa1ef0b5952c4d131c1c0a;hpb=f4cf50557cfe088ed6c09d1d12d86b4cc8e14397;p=ghostsoverboard diff --git a/mainwindow.cpp b/mainwindow.cpp index 618446f..4191aca 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -59,6 +59,12 @@ MainWindow::MainWindow(QWidget *parent) connect(pRestartLevelAction,SIGNAL(triggered()),this,SLOT(restartLevel())); menuBar()->addAction(pRestartLevelAction); + QAction * pVibrateAction = new QAction(tr("Vibration effects"),this); + pVibrateAction->setCheckable(true); + addAction(pVibrateAction); + connect(pVibrateAction,SIGNAL(triggered(bool)),pScene_,SLOT(vibrationActivate(bool))); + menuBar()->addAction(pVibrateAction); + QAction * pAboutAction = new QAction(tr("About"),this); addAction(pAboutAction); @@ -66,12 +72,6 @@ MainWindow::MainWindow(QWidget *parent) menuBar()->addAction(pAboutAction); - QAction * pVibrateAction = new QAction(tr("Vibration effects"),this); - pVibrateAction->setCheckable(true); - addAction(pVibrateAction); - connect(pVibrateAction,SIGNAL(triggered(bool)),pScene_,SLOT(vibrationActivate(bool))); - menuBar()->addAction(pVibrateAction); - //the boundaries of the scene are set to match the size of the view window, which is not //available in the constructor --> timer needed