Skip to content

Commit

Permalink
change overflow = hidden to overflow = auto in Item.js
Browse files Browse the repository at this point in the history
cosmetic changes in Fontloader.js
cleanup Widgets.qml
  • Loading branch information
arnopaehler committed Jul 20, 2015
1 parent 101db47 commit bf4082c
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions tests/Widgets.qml
Expand Up @@ -55,6 +55,16 @@ Rectangle {
info.text = text;
text_edit.text = text;
}

focus: true
Keys.onPressed: {
if (event.key != Qt.Key_Enter) {
var names = Object.getOwnPropertyNames(event), out = []
for (var n = 0; n < names.length; n++ )
out.push(names[n] + ' : ' + event[names[n]]);
text_edit.text = out.join('\n');
}
}
}

Text {
Expand Down Expand Up @@ -95,9 +105,7 @@ Rectangle {

TextArea {
id: text_area
x: 280
y: 280
width: 200
width: 300
height: 100
anchors.top: checkbox.bottom
anchors.topMargin: 10
Expand All @@ -108,22 +116,10 @@ Rectangle {
+ (checkbox.checked ? '' : 'not ') + 'checked.'
}

Text {
id: final
anchors.horizontalCenter: root.horizontalCenter
anchors.bottom: root.bottom
anchors.bottomMargin: 30
color: 'red'
font.pointSize: 20
text: '<u>More Widgets to follow ...</u>'
}

TextEdit {
id: text_edit
x: 280
y: 280
width: 200
height: 100
width: 300
height: 200
anchors.top: text_area.bottom
anchors.topMargin: 10
anchors.left: grid.left
Expand All @@ -136,4 +132,14 @@ Rectangle {
+ lineCount + ' lines \nselectByKeyboard ' + selectByKeyboard
+ '\nselectByMouse ' + selectByMouse
}

Text {
id: final
anchors.horizontalCenter: root.horizontalCenter
anchors.top: text_edit.bottom
anchors.topMargin: 30
color: 'red'
font.pointSize: 20
text: '<u>More Widgets to follow ...</u>'
}
}

0 comments on commit bf4082c

Please sign in to comment.