summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorFrans Englich <frans.englich@nokia.com>2009-09-30 13:11:39 (GMT)
committerFrans Englich <frans.englich@nokia.com>2009-09-30 13:11:39 (GMT)
commit7c33e0f95789af1f6c091db89581f8a26b10682d (patch)
treecb8faa2ab6ce19c85a8c0c90dc852db08375868e /demos
parentda935e9df4c63490a7d2a716236f1e781c2d75a6 (diff)
parentc3ef2d3a6d9a6e35b05cbd8f370630d5dd85415e (diff)
downloadQt-7c33e0f95789af1f6c091db89581f8a26b10682d.zip
Qt-7c33e0f95789af1f6c091db89581f8a26b10682d.tar.gz
Qt-7c33e0f95789af1f6c091db89581f8a26b10682d.tar.bz2
Merge commit 'origin/4.6' into mmfphonon
Diffstat (limited to 'demos')
-rw-r--r--demos/embedded/anomaly/anomaly.pro2
-rw-r--r--demos/sub-attaq/states.cpp6
-rw-r--r--demos/sub-attaq/sub-attaq.pro4
-rw-r--r--demos/sub-attaq/textinformationitem.cpp2
4 files changed, 9 insertions, 5 deletions
diff --git a/demos/embedded/anomaly/anomaly.pro b/demos/embedded/anomaly/anomaly.pro
index 8fb1265..f7c11b6 100644
--- a/demos/embedded/anomaly/anomaly.pro
+++ b/demos/embedded/anomaly/anomaly.pro
@@ -24,7 +24,7 @@ RESOURCES += src/anomaly.qrc
symbian {
include($$QT_SOURCE_TREE/demos/symbianpkgrules.pri)
HEADERS += $$QT_SOURCE_TREE/examples/network/ftp/sym_iap_util.h
- LIBS += -lesock -lconnmon
+ LIBS += -lesock -linsock -lconnmon
TARGET.CAPABILITY = NetworkServices
TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
TARGET.UID3 = 0xA000CF71
diff --git a/demos/sub-attaq/states.cpp b/demos/sub-attaq/states.cpp
index 10c173e..7443ae7 100644
--- a/demos/sub-attaq/states.cpp
+++ b/demos/sub-attaq/states.cpp
@@ -67,6 +67,8 @@ PlayState::PlayState(GraphicsScene *scene, QState *parent)
PlayState::~PlayState()
{
+ if (machine)
+ delete machine;
}
void PlayState::onEntry(QEvent *)
@@ -74,13 +76,15 @@ void PlayState::onEntry(QEvent *)
//We are now playing?
if (machine) {
machine->stop();
+ //we hide the information
+ scene->textInformationItem->hide();
scene->clearScene();
currentLevel = 0;
score = 0;
delete machine;
}
- machine = new QStateMachine(this);
+ machine = new QStateMachine;
//This state is when player is playing
LevelState *levelState = new LevelState(scene, this, machine);
diff --git a/demos/sub-attaq/sub-attaq.pro b/demos/sub-attaq/sub-attaq.pro
index ba2b54b..8677ff5 100644
--- a/demos/sub-attaq/sub-attaq.pro
+++ b/demos/sub-attaq/sub-attaq.pro
@@ -31,13 +31,13 @@ SOURCES += boat.cpp \
RESOURCES += subattaq.qrc
# install
-target.path = $$[QT_INSTALL_DEMOS]/animation/sub-attaq
+target.path = $$[QT_INSTALL_DEMOS]/sub-attaq
sources.files = $$SOURCES \
$$HEADERS \
$$RESOURCES \
$$FORMS \
sub-attaq.pro \
pics
-sources.path = $$[QT_INSTALL_DEMOS]/animation/sub-attaq
+sources.path = $$[QT_INSTALL_DEMOS]/sub-attaq
INSTALLS += target \
sources
diff --git a/demos/sub-attaq/textinformationitem.cpp b/demos/sub-attaq/textinformationitem.cpp
index 453fd24..1b0c831 100644
--- a/demos/sub-attaq/textinformationitem.cpp
+++ b/demos/sub-attaq/textinformationitem.cpp
@@ -44,7 +44,7 @@
TextInformationItem::TextInformationItem (QGraphicsItem * parent)
: QGraphicsTextItem(parent)
{
- setFont(QFont("Comic Sans MS", 25));
+ setFont(QFont("Comic Sans MS", 15));
}
#include <QDebug>
void TextInformationItem::setMessage(const QString& text)