From f8d3a8441d4b16d156a51ee3faecf9a2dd83f9b6 Mon Sep 17 00:00:00 2001 From: timoph Date: Sat, 23 Jan 2010 21:44:40 +0000 Subject: [PATCH 1/1] IntroItem background color git-svn-id: file:///svnroot/impuzzle/trunk@11 e6bec12f-0854-4cc4-ad26-6875f1509f77 --- src/defines.h | 2 +- src/introitem.cpp | 4 ++++ src/mainwindow.cpp | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/defines.h b/src/defines.h index 066cffb..5ab8bb1 100644 --- a/src/defines.h +++ b/src/defines.h @@ -23,7 +23,7 @@ #define IMAGE_HEIGHT 400 -#define GAME_VERSION = "0.2" +#define GAME_VERSION 0.3 #define EASY_PIECE_COUNT 12 #define HARD_PIECE_COUNT 20 diff --git a/src/introitem.cpp b/src/introitem.cpp index 87f0b56..3d6f65b 100644 --- a/src/introitem.cpp +++ b/src/introitem.cpp @@ -22,6 +22,10 @@ void IntroItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, painter->save(); + painter->setBrush(Qt::black); + painter->setPen(Qt::NoPen); + painter->drawRect(boundingRect()); + painter->setBrush(Qt::NoBrush); painter->setPen(Qt::white); diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 2f1f644..df39b20 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -35,6 +35,8 @@ MainWindow::MainWindow(QWidget *parent) : setCentralWidget(GameView::instance()); settingsDialog_ = new SettingsDialog(this); + + setWindowTitle(tr("ImPuzzle")); } void MainWindow::createMenu() -- 1.7.9.5