51 property alias message: instructionTxt.textIn
57 property alias button1Text: button1.text
63 property alias button2Text: button2.text
105 Behavior on opacity { NumberAnimation { duration: 200 } }
106 onOpacityChanged: opacity === 0 ? close() : null
114 MultiPointTouchArea {
123 horizontalCenter: parent.horizontalCenter
125 topMargin: buttonCancel.height
127 width: parent.width * 0.8
131 anchors.top: instruction.top
134 height: gcdialog.height - button1.height * 5
138 border.color:
"white"
140 GradientStop { position: 0.0; color:
"#fff" }
141 GradientStop { position: 0.9; color:
"#fff" }
142 GradientStop { position: 1.0; color:
"#ddd" }
149 contentWidth: instructionTxt.contentWidth
150 contentHeight: instructionTxt.contentHeight
151 flickableDirection: Flickable.VerticalFlick
156 fontSize: regularSize
160 width: instruction.width
161 wrapMode: TextEdit.WordWrap
162 textFormat: TextEdit.RichText
164 text: style +
"<body>" + textIn +
"</body>"
166 linkActivated.connect(Qt.openUrlExternally) : null
168 property string textIn
170 "<HEAD><STYLE type='text/css'>A {color: blue;}</STYLE></HEAD>" :
171 "<HEAD><STYLE type='text/css'>A {color: black;}</STYLE></HEAD>"
181 horizontalCenter: parent.horizontalCenter
182 top: instructionTxtBg.bottom
189 gcdialog.button1Hit()
199 horizontalCenter: parent.horizontalCenter
207 gcdialog.button2Hit()
215 Keys.onEscapePressed: {
217 event.accepted = true;
223 onClose: parent.stop()
A QML component unifying text presentation in GCompris.
bool isDownloadAllowed
Download allowed.
A general purpose singleton that exposes miscellaneous native functions to the QML layer...
qreal ratio
Ratio factor used for scaling of sizes on high-dpi devices.