summaryrefslogtreecommitdiffstats
path: root/demos/declarative/mediabrowser/content/MovieInfoContainer.qml
diff options
context:
space:
mode:
Diffstat (limited to 'demos/declarative/mediabrowser/content/MovieInfoContainer.qml')
-rw-r--r--demos/declarative/mediabrowser/content/MovieInfoContainer.qml60
1 files changed, 60 insertions, 0 deletions
diff --git a/demos/declarative/mediabrowser/content/MovieInfoContainer.qml b/demos/declarative/mediabrowser/content/MovieInfoContainer.qml
new file mode 100644
index 0000000..c53fab6
--- /dev/null
+++ b/demos/declarative/mediabrowser/content/MovieInfoContainer.qml
@@ -0,0 +1,60 @@
+<Flipable id="Container">
+ <properties>
+ <Property name="frontContainer" value="{ContainerFront}"/>
+ <Property name="flickableArea" value="{Flickable}"/>
+ <Property name="movieTitle" value="N/A"/>
+ <Property name="movieDescription" value="..."/>
+ <Property name="rating" value="2"/>
+ </properties>
+
+ <signals>
+ <Signal name="closed"/>
+ </signals>
+
+ <transform>
+ <Axis id="Axis" xStart="{Container.width / 2}" xEnd="{Container.width / 2}" yEnd="1" />
+ </transform>
+
+ <front>
+ <Item id="ContainerFront" anchors.fill="{Container}">
+ <Rect anchors.fill="{parent}" color="black" opacity="0.4" pen.color="white" pen.width="2"/>
+
+ <MediaButton id="BackButton" x="630" y="400" text="Back" onClicked="Container.closed.emit()"/>
+ <MediaButton id="MoreButton" x="530" y="400" text="More..." onClicked="Container.state='Back'"/>
+
+ <Text id="TitleText" style="Raised" styleColor="black" color="white" x="320" y="30" width="{parent.width}"
+ text="{Container.movieTitle}" font.size="22"/>
+
+ <LikeOMeter x="320" y="75" rating="{Container.rating}"/>
+
+ <Flickable id="Flickable" x="320" width="380" height="260" y="120" clip="true" viewportWidth="380"
+ viewportHeight="{DescriptionText.height}">
+ <Text id="DescriptionText" wrap="true" color="white" width="{parent.width}"
+ text="{Container.movieDescription}" font.size="12"/>
+ </Flickable>
+
+ <ScrollBar id="ScrollBar" x="720" y="{Flickable.y}" width="7" height="{Flickable.height}" opacity="0"
+ flickableArea="{Flickable}" clip="true"/>
+ </Item>
+ </front>
+
+ <back>
+ <Item anchors.fill="{Container}">
+ <Rect anchors.fill="{parent}" color="black" opacity="0.4" pen.color="white" pen.width="2"/>
+ <MediaButton id="BackButton2" x="630" y="400" text="Back" onClicked="Container.state=''"/>
+ </Item>
+ </back>
+
+ <states>
+ <State name="Back">
+ <SetProperty target="{Axis}" property="rotation" value="180"/>
+ </State>
+ </states>
+
+ <transitions>
+ <Transition>
+ <NumericAnimation easing="easeInOutQuad" properties="rotation" duration="500"/>
+ </Transition>
+ </transitions>
+
+</Flipable>