1 import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
2 import "../UIConstants.js" as Const
15 color: Const.SHADOW_COLOR;
17 x: 2*Const.SHADOW_OFFSET;
18 y: 2*Const.SHADOW_OFFSET;
23 height: text.height+4*Const.DEFAULT_MARGIN
25 color: Const.COOL_GREY_COLOR
28 border.color: Const.WARM_GREY_COLOR
33 anchors.centerIn: parent
34 anchors.margins: Const.DEFAULT_MARGIN
35 color: Const.DEFAULT_FOREGROUND_COLOR
36 wrapMode: Text.WordWrap
37 font.pixelSize: Const.DEFAULT_FONT_PIXEL_SIZE
38 width: parent.width-2*Const.DEFAULT_MARGIN
39 horizontalAlignment: Text.Center
44 onClicked: tip.state = "invisible"
51 if(_text.length > 40) {
52 time.interval = _text.length*100;
60 function show2(_text,interval)
63 time.interval = interval;
78 tip.state = "invisible";
85 PropertyChanges { target: root; opacity: 1 }
86 PropertyChanges { target: root; width: mainWindow.width-2*Const.TEXT_MARGIN }
87 PropertyChanges { target: text; font.pixelSize: Const.DEFAULT_FONT_PIXEL_SIZE }
91 PropertyChanges { target: root; width: 0 }
92 PropertyChanges { target: text; font.pixelSize: 1 }
93 PropertyChanges { target: root; opacity: 0 }
97 transitions: Transition {
98 NumberAnimation { properties: "opacity"; easing.type: Easing.InOutBack }
99 NumberAnimation { properties: "width"; easing.type: Easing.InOutBack}
100 NumberAnimation { properties: "font.pixelSize"; easing.type: Easing.InOutBack}