The application can again be exited on N900...
about();
}
+ else if (pItem == pQuitItem_)
+ {
+ qApp->quit();
+ }
+
//Selection is just used to get notice of a menu item being clicked, removed after use
pAboutItem_ = new QGraphicsSimpleTextItem("About");
prepareForMenu(pAboutItem_);
+ pQuitItem_ = new QGraphicsSimpleTextItem("Quit");
+ prepareForMenu(pQuitItem_);
+
}
void SeaScene::prepareForMenu(QGraphicsItem * pItem)
QGraphicsSimpleTextItem * pRestartGameItem_;
QGraphicsSimpleTextItem * pSettingsItem_;
QGraphicsSimpleTextItem * pAboutItem_;
+ QGraphicsSimpleTextItem * pQuitItem_;
QList<Level> levelList_;