Permalink
Browse files

splashscreen added

  • Loading branch information...
ssinan committed Oct 20, 2011
1 parent de74023 commit 3bb3d617dab1930ebf4c4be74feaee4ef6c987e3
View
@@ -35,3 +35,18 @@ SOURCES += main.cpp
# Please do not modify the following two lines. Required for deployment.
include(qmlapplicationviewer/qmlapplicationviewer.pri)
qtcAddDeployment()
+
+OTHER_FILES += \
+ qml/facebookbirthdays/img/splashscreen.png \
+ qml/facebookbirthdays/img/app_icon.png
+
+RESOURCES +=
+
+
+
+
+
+
+
+
+
@@ -0,0 +1,12 @@
+import QtQuick 1.0
+import com.nokia.symbian 1.0
+
+Page {
+ id: splashScreen
+ Image {
+ anchors.centerIn: parent
+ width: parent.width
+ height: parent.height
+ source: "./img/splashscreen.png"
+ }
+}
Binary file not shown.
Binary file not shown.
@@ -12,22 +12,30 @@ Window {
PageStack {
id: pageStack
anchors { left: parent.left; right: parent.right; top: statusBar.bottom; bottom: toolBar.top }
+ Timer {
+ interval: 2000; running: true; repeat: false
+ onTriggered: {
+ pageStack.push(Qt.resolvedUrl("MainPage.qml"))
+ toolBar.visible = true
+ }
+ }
}
ToolBar {
id: toolBar
anchors.bottom: window.bottom
+ visible: false
tools: ToolBarLayout {
id: toolBarLayout
ToolButton {
flat: true
iconSource: "toolbar-back"
- onClicked: pageStack.depth <= 1 ? Qt.quit() : pageStack.pop()
+ onClicked: pageStack.depth <= 2 ? Qt.quit() : pageStack.pop()
}
}
}
Component.onCompleted: {
- pageStack.push(Qt.resolvedUrl("MainPage.qml"))
+ pageStack.push(Qt.resolvedUrl("SplashScreen.qml"))
}
}

0 comments on commit 3bb3d61

Please sign in to comment.