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.DEFAULT_DIALOG_FOREGROUND_COLOR
26 color: Const.COOL_GREY_COLOR
29 border.color: Const.WARM_GREY_COLOR
34 anchors.centerIn: parent
35 anchors.margins: Const.DEFAULT_MARGIN
36 color: Const.DEFAULT_FOREGROUND_COLOR
37 wrapMode: Text.WordWrap
38 font.pixelSize: Const.DEFAULT_FONT_PIXEL_SIZE
39 width: parent.width-2*Const.DEFAULT_MARGIN
40 horizontalAlignment: Text.Center
45 onClicked: tip.state = "invisible"
52 if(_text.length > 40) {
53 time.interval = _text.length*100;
61 function show2(_text,interval)
64 time.interval = interval;
79 tip.state = "invisible";
86 PropertyChanges { target: root; opacity: 1 }
87 PropertyChanges { target: root; width: mainWindow.width-2*Const.TEXT_MARGIN }
88 PropertyChanges { target: text; font.pixelSize: Const.DEFAULT_FONT_PIXEL_SIZE }
92 PropertyChanges { target: root; width: 0 }
93 PropertyChanges { target: text; font.pixelSize: 1 }
94 PropertyChanges { target: root; opacity: 0 }
98 transitions: Transition {
99 NumberAnimation { properties: "opacity"; easing.type: Easing.InOutBack }
100 NumberAnimation { properties: "width"; easing.type: Easing.InOutBack}
101 NumberAnimation { properties: "font.pixelSize"; easing.type: Easing.InOutBack}