From 932e7d903101303bb95db1fc206566a5a64c6258 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Heli=20Hyv=C3=A4ttinen?= Date: Wed, 20 Jul 2011 10:52:16 +0300 Subject: [PATCH 1/1] Bigger quit and about menu buttons and about box icon back Changed "Quit" and "About" to "Quit game" and "About game", so that they are easier to hit. Set the default window icon in QApplication, brought about box icon back. --- main.cpp | 1 + seascene.cpp | 4 ++-- seaview.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 168bc1d..2ebb39f 100644 --- a/main.cpp +++ b/main.cpp @@ -28,6 +28,7 @@ int main(int argc, char *argv[]) QApplication a(argc, argv); a.setApplicationName("Ghosts Overboard"); a.setApplicationVersion("0.2.1"); + a.setWindowIcon(QIcon(":/pix/laiva_3aave.png")); SeaView w; #if defined(Q_WS_S60) w.showMaximized(); diff --git a/seascene.cpp b/seascene.cpp index 13d76f9..c90636f 100644 --- a/seascene.cpp +++ b/seascene.cpp @@ -473,11 +473,11 @@ void SeaScene::createMenuItems() prepareForMenu(pSettingsItem_); pAboutItem_ = new QGraphicsTextItem; - pAboutItem_->setHtml(tr("About").prepend(menufonthtml)); + pAboutItem_->setHtml(tr("About
game").prepend(menufonthtml)); prepareForMenu(pAboutItem_); pQuitItem_ = new QGraphicsTextItem; - pQuitItem_->setHtml(tr("Quit").prepend(menufonthtml)); + pQuitItem_->setHtml(tr("Quit
game").prepend(menufonthtml)); prepareForMenu(pQuitItem_); } diff --git a/seaview.cpp b/seaview.cpp index a0496f3..62c12a4 100644 --- a/seaview.cpp +++ b/seaview.cpp @@ -29,7 +29,7 @@ SeaView::SeaView(QWidget *parent) : QGraphicsView(parent) { - setWindowIcon(QIcon(":/pix/laiva_3aave.png")); + setWindowTitle("Ghosts Overboard"); pScene_ = new SeaScene (); -- 1.7.9.5