Commit 831b8ec4 authored by Akshat Tandon's avatar Akshat Tandon Committed by Johnny Jazeix
Browse files

letter-in-word, rectified coordinates, added few more levels.

parent 7c5b02a3
/* GCompris - Card.qml
*
* Copyright (C) 2014 Holger Kaelberer <holger.k@elberer.de>
* Copyright (C) 2016 Akshat Tandon <akshat.tandon@research.iiit.ac.in>
*
* Authors:
* Pascal Georges <pascal.georges1@free.fr> (GTK+ version)
* Bruno Coudoin <bruno.coudoin@gcompris.net> (GTK+ Mostly full rewrite)
* Holger Kaelberer <holger.k@elberer.de> (Qt Quick port)
* Akshat Tandon <akshat.tandon@research.iiit.ac.in>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -35,6 +33,7 @@ Item {
id: wordPic
anchors.bottom: cardImage.top
sourceSize.width: cardItem.width
sourceSize.height: cardItem.width*1.11
fillMode: Image.PreserveAspectFit
source: imgurl
z:-5
......
......@@ -207,7 +207,7 @@ ActivityBase {
height: plane.height
x: - width
anchors.top: parent.top
anchors.topMargin: 20 * ApplicationInfo.ratio
anchors.topMargin: 5 * ApplicationInfo.ratio
Image {
id: plane
......@@ -253,9 +253,9 @@ ActivityBase {
anchors.left: parent.left
anchors.right: parent.right
anchors.top: planeText.bottom
anchors.leftMargin: 35 * ApplicationInfo.ratio
anchors.rightMargin: 35 * ApplicationInfo.ratio
anchors.bottomMargin: 13 * ApplicationInfo.ratio
anchors.leftMargin: 5 * ApplicationInfo.ratio
anchors.rightMargin: 5 * ApplicationInfo.ratio
//anchors.bottomMargin: 5 * ApplicationInfo.ratio
cellWidth: itemWidth
cellHeight: itemHeight
clip: false
......@@ -267,6 +267,7 @@ ActivityBase {
model: wordsModel
delegate: Card{
width: background.itemWidth
}
}
......
[
{
"level": 1,
"words": "cow,dog,fire,car,pig,owl,apple,plum",
"questions":"aeiou"
"level": 1,
"words": "car,bulb,fish",
"questions":"afbu"
},
{
"level": 2,
"words": "cow,dog,fire,pig",
"questions":"pfcdio"
},
{
"level": 3,
"words": "dice,banana,earth,orange,cat",
"questions":"aoedchg"
}
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment