aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Cord-Landwehr <[email protected]>2015-09-08 18:51:40 +0200
committerAndreas Cord-Landwehr <[email protected]>2015-09-08 18:51:40 +0200
commit517fe9b009fde7bdbf9e64629079da9cd98a3b4b (patch)
tree9537b64d90965096e1233674937a073bafbd735f
parentfa61cbb1ec4a13aa4ec26049516ad529592b5d6c (diff)
Better order of elements.
-rw-r--r--src/qml/PhraseEditor.qml34
1 files changed, 15 insertions, 19 deletions
diff --git a/src/qml/PhraseEditor.qml b/src/qml/PhraseEditor.qml
index 459f233..9749116 100644
--- a/src/qml/PhraseEditor.qml
+++ b/src/qml/PhraseEditor.qml
@@ -48,24 +48,31 @@ Item {
textEdit.height + phraseTypeSetter.height;
}
}
- Column {
+ ColumnLayout {
id: textEdit
height: inputLine.height + originalPhraseInfo.height
width: parent.width
spacing: 5
+
+ Row {
+ id: originalPhraseInfo
+ property string originalPhrase : (root.phrase != null) ? root.phrase.i18nText : ""
+ spacing: 10
+ visible: { root.phrase != null && originalPhrase != "" && !root.isSkeletonPhrase}
+ Text {
+ text: i18n("Original Phrase:") + " <i>" + originalPhraseInfo.originalPhrase + "</i>"
+ width: root.width - 70
+ wrapMode: Text.WordWrap
+ }
+ }
RowLayout { // controls for setting phrase
id: inputLine
- anchors {
- left: parent.left
- right: parent.right
- }
- height: 30
- TextField {
+ TextArea {
id: phraseInput
property Phrase phrase: root.phrase
Layout.fillWidth: true
+ Layout.maximumHeight: 100
text: root.phrase.text
- anchors.verticalCenter: inputLine.verticalCenter
onTextChanged: root.phrase.text = text
onPhraseChanged: {
if (root.phrase != null)
@@ -75,17 +82,6 @@ Item {
}
}
}
- Row {
- id: originalPhraseInfo
- property string originalPhrase : (root.phrase != null) ? root.phrase.i18nText : ""
- spacing: 10
- visible: { root.phrase != null && originalPhrase != "" }
- Text {
- text: i18n("Original Phrase:") + " <i>" + originalPhraseInfo.originalPhrase + "</i>"
- width: root.width - 70
- wrapMode: Text.WordWrap
- }
- }
PhraseEditorTypeComponent {
id: phraseTypeSetter