X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=mainwindow.cpp;fp=mainwindow.cpp;h=0845aa7ff5a738fc43e42ecf536fd9d3488bc496;hb=1613bf0f9fb8f7422dc6f92bbe43ce318d6bd9e1;hp=0621f7de32e45214bcc54388ed991860d5d8051a;hpb=321e64696fc58b35759ab5e6cc9b2b2318499f73;p=ghostsoverboard diff --git a/mainwindow.cpp b/mainwindow.cpp index 0621f7d..0845aa7 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); @@ -83,6 +89,7 @@ MainWindow::MainWindow(QWidget *parent) currentLevel_ = 0; + //the boundaries of the scene are set to match the size of the view window, which is not //available in the constructor --> timer needed QTimer::singleShot(100,this,SLOT(initializeBoundaries()));