[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/base/plasma/declarative-applets/examples/pairsgame
From: Marco Martin <notmart () gmail ! com>
Date: 2010-12-23 17:35:20
Message-ID: 20101223173520.D23993E1F3 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1208929 by mart:
simplify
M +2 -16 GameTimer.qml
--- trunk/playground/base/plasma/declarative-applets/examples/pairsgame/GameTimer.qml \
#1208928:1208929 @@ -24,25 +24,11 @@
color: Qt.rgba(0,0,0,0.4)
width: childrenRect.width
height: childrenRect.height
- Row {
Text {
- text: Math.floor((time/60)/10)
+ text: Math.floor((time/60)/10)+""+Math.floor((time/60)/10)+":"+Math.floor((time%60)/10)+(time%60)%10
font.pointSize: 22
}
- Text {
- text: Math.floor(time/60)
- font.pointSize: 22
- }
- Text {text: ":";font.pointSize: 22}
- Text {
- text: Math.floor((time%60)/10)
- font.pointSize: 22
- }
- Text {
- text: (time%60)%10
- font.pointSize: 22
- }
- }
+
Timer {
interval: 1000
running: true
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic