summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demos/declarative/samegame/SameGame.qml3
-rwxr-xr-xdemos/declarative/samegame/highscores/score_style.xsl1
2 files changed, 3 insertions, 1 deletions
diff --git a/demos/declarative/samegame/SameGame.qml b/demos/declarative/samegame/SameGame.qml
index 877c1cc..ede4362 100644
--- a/demos/declarative/samegame/SameGame.qml
+++ b/demos/declarative/samegame/SameGame.qml
@@ -44,7 +44,8 @@ Rectangle {
scoreName.forceClose();
}
anchors.verticalCenter: parent.verticalCenter
- x:160; width: 200; height:20; focus: true
+ width: 72; focus: true
+ anchors.right: scoreName.right
}
}
diff --git a/demos/declarative/samegame/highscores/score_style.xsl b/demos/declarative/samegame/highscores/score_style.xsl
index 7dcf07e..670354c 100755
--- a/demos/declarative/samegame/highscores/score_style.xsl
+++ b/demos/declarative/samegame/highscores/score_style.xsl
@@ -13,6 +13,7 @@
<th>Time, s</th>
</tr>
<xsl:for-each select="records/record">
+ <xsl:sort select="score" data-type="number" order="descending"/>
<tr>
<td><xsl:value-of select="name"/></td>
<td><xsl:value-of select="score"/></td>