~maliit-team/maliit-plugin-jp/trunk

« back to all changes in this revision

Viewing changes to skeleton/mallit/qml/Tooltip.qml

  • Committer: liang
  • Date: 2011-07-20 17:19:53 UTC
  • Revision ID: git-v1:c3d107a6b280a8d2c071bb1df794c7b0a4d4c703
package done

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import QtQuick 1.1
2
 
import com.meego 1.0
3
 
 
4
 
Item {
5
 
    id : plat
6
 
    width : title.paintedWidth > 75 ? Math.ceil( title.paintedWidth / 25 ) * 25 : 75
7
 
    height : title.paintedHeight + 25
8
 
    visible : false
9
 
 
10
 
    Button {
11
 
        anchors.fill : parent
12
 
        checked : true
13
 
    }
14
 
 
15
 
    Text {
16
 
        id : title
17
 
        anchors.centerIn : plat
18
 
        color : palette.keyTextColor
19
 
        font.pointSize: 36; font.bold: true
20
 
        /*visible : false*/
21
 
    }
22
 
    property alias text : title.text
23
 
 
24
 
    states {
25
 
        State {
26
 
            name : "ACTIVE" ; when : text.length > 0
27
 
            PropertyChanges { target : plat ; visible : true }
28
 
        }
29
 
    }
30
 
}