Solved clipping of the scrollbar on different textareas

This commit is contained in:
Marco Dalla Tiezza
2024-06-06 20:12:29 +02:00
parent 9d2443b0f0
commit c7c53b5a68
4 changed files with 519 additions and 526 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -82,18 +82,6 @@ Window {
}
}
function contentChanged() {
if (listView.currentIndex !== -1) {
myModel.set(
listView.currentIndex,
{
'name': nameField.text,
'description': descriptionField.text,
}
)
}
}
function lockMenu(toggle) {
if (toggle) {
openButton.enabled = false
@@ -236,16 +224,18 @@ Window {
}
}
ScrollView {
Layout.fillHeight: true
Flickable {
Layout.fillWidth: true
ScrollBar.vertical.interactive: true
TextArea {
Layout.fillHeight: true
TextArea.flickable: TextArea {
id: newDescriptionField
placeholderText: qsTr("Description")
font.pointSize: 10
wrapMode: TextEdit.WordWrap
}
ScrollBar.vertical: ScrollBar {
width: 10
}
}
}
@@ -293,16 +283,18 @@ Window {
}
}
ScrollView {
Layout.fillHeight: true
Flickable {
Layout.fillWidth: true
ScrollBar.vertical.interactive: true
TextArea {
Layout.fillHeight: true
TextArea.flickable: TextArea {
id: editDescriptionField
placeholderText: qsTr("Description")
font.pointSize: 10
wrapMode: TextEdit.WordWrap
}
ScrollBar.vertical: ScrollBar {
width: 10
}
}
}
@@ -446,9 +438,7 @@ Window {
id: nameField
Layout.fillWidth: true
placeholderText: qsTr("Name")
onTextChanged: {
contentChanged()
}
readOnly: true
}
TextField {
@@ -458,18 +448,18 @@ Window {
readOnly: true
}
ScrollView {
Flickable {
Layout.fillWidth: true
Layout.fillHeight: true
ScrollBar.vertical.interactive: true
TextArea {
TextArea.flickable: TextArea {
id: descriptionField
wrapMode: TextEdit.WordWrap
placeholderText: qsTr("Description")
readOnly: true
font.pointSize: 10
onTextChanged: {
contentChanged()
}
wrapMode: TextEdit.WordWrap
}
ScrollBar.vertical: ScrollBar {
width: 10
}
}

View File

@@ -154,17 +154,18 @@ Window {
}
}
ScrollView {
Flickable {
Layout.fillWidth: true
Layout.topMargin: 5
Layout.fillHeight: true
ScrollBar.vertical.interactive: true
TextArea {
Layout.topMargin: 5
TextArea.flickable: TextArea {
id: paramDescription
placeholderText: qsTr("Description")
wrapMode: TextEdit.WordWrap
font.pointSize: 10
wrapMode: TextEdit.WordWrap
}
ScrollBar.vertical: ScrollBar {
width: 10
}
}

View File

@@ -573,19 +573,21 @@ Page {
}
}
ScrollView {
Flickable {
Layout.fillWidth: true
Layout.topMargin: 5
Layout.fillHeight: true
ScrollBar.vertical.interactive: true
TextArea {
Layout.topMargin: 5
TextArea.flickable: TextArea {
id: descriptionTextArea
placeholderText: qsTr("Description")
font.pointSize: 10
wrapMode: TextEdit.WordWrap
textFormat: Text.MarkdownText
font.pointSize: 10
readOnly: true
}
ScrollBar.vertical: ScrollBar {
width: 10
}
}
}