Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add TextEdit to tests modified ColumnRow and Widgets in tests
- Loading branch information
1 parent
b074543
commit ac735f5
Showing
4 changed files
with
300 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import QtQuick 2.0 | ||
import QtQuick.Controls 1.0 | ||
|
||
Rectangle { | ||
id: page | ||
color: 'white' | ||
width: 500 | ||
|
||
Text { | ||
id: title | ||
anchors.horizontalCenter: text_edit.horizontalCenter | ||
font.pointSize: 28 | ||
font.bold: true | ||
color: '#00a' | ||
text: '<b><u>TextEdit</u></b>' | ||
} | ||
TextEdit { | ||
id: text_edit | ||
width: 500 | ||
height: 400 | ||
anchors.top: title.bottom + 30 | ||
anchors.left: 100 | ||
font.bold: true | ||
|
||
text: | ||
'Habe nun, ach! Philosophie, | ||
Juristerei und Medizin, | ||
Und leider auch Theologie | ||
Durchaus studiert, mit heißem Bemühn. | ||
Da steh ich nun, ich armer Tor! | ||
Und bin so klug als wie zuvor; | ||
Heiße Magister, heiße Doktor gar | ||
Und ziehe schon an die zehen Jahr | ||
Herauf, herab und quer und krumm | ||
Meine Schüler an der Nase herum' | ||
} | ||
|
||
Text { | ||
id: info | ||
anchors.left: text_edit.left | ||
anchors.top: text_edit.bottom + 20 | ||
color: 'red' | ||
font.pointSize: 16 | ||
text: 'Lines = ' + text_edit.lineCount + ' ' | ||
+ 'Chars = ' + text_edit.length | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters