Solved clipping of the scrollbar on different textareas
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -82,18 +82,6 @@ Window {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function contentChanged() {
|
|
||||||
if (listView.currentIndex !== -1) {
|
|
||||||
myModel.set(
|
|
||||||
listView.currentIndex,
|
|
||||||
{
|
|
||||||
'name': nameField.text,
|
|
||||||
'description': descriptionField.text,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function lockMenu(toggle) {
|
function lockMenu(toggle) {
|
||||||
if (toggle) {
|
if (toggle) {
|
||||||
openButton.enabled = false
|
openButton.enabled = false
|
||||||
@@ -236,16 +224,18 @@ Window {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollView {
|
Flickable {
|
||||||
Layout.fillHeight: true
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
ScrollBar.vertical.interactive: true
|
Layout.fillHeight: true
|
||||||
|
TextArea.flickable: TextArea {
|
||||||
TextArea {
|
|
||||||
id: newDescriptionField
|
id: newDescriptionField
|
||||||
placeholderText: qsTr("Description")
|
placeholderText: qsTr("Description")
|
||||||
|
font.pointSize: 10
|
||||||
wrapMode: TextEdit.WordWrap
|
wrapMode: TextEdit.WordWrap
|
||||||
}
|
}
|
||||||
|
ScrollBar.vertical: ScrollBar {
|
||||||
|
width: 10
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -293,16 +283,18 @@ Window {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollView {
|
Flickable {
|
||||||
Layout.fillHeight: true
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
ScrollBar.vertical.interactive: true
|
Layout.fillHeight: true
|
||||||
|
TextArea.flickable: TextArea {
|
||||||
TextArea {
|
|
||||||
id: editDescriptionField
|
id: editDescriptionField
|
||||||
placeholderText: qsTr("Description")
|
placeholderText: qsTr("Description")
|
||||||
|
font.pointSize: 10
|
||||||
wrapMode: TextEdit.WordWrap
|
wrapMode: TextEdit.WordWrap
|
||||||
}
|
}
|
||||||
|
ScrollBar.vertical: ScrollBar {
|
||||||
|
width: 10
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -446,9 +438,7 @@ Window {
|
|||||||
id: nameField
|
id: nameField
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderText: qsTr("Name")
|
placeholderText: qsTr("Name")
|
||||||
onTextChanged: {
|
readOnly: true
|
||||||
contentChanged()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField {
|
TextField {
|
||||||
@@ -458,18 +448,18 @@ Window {
|
|||||||
readOnly: true
|
readOnly: true
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollView {
|
Flickable {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
ScrollBar.vertical.interactive: true
|
TextArea.flickable: TextArea {
|
||||||
|
|
||||||
TextArea {
|
|
||||||
id: descriptionField
|
id: descriptionField
|
||||||
wrapMode: TextEdit.WordWrap
|
placeholderText: qsTr("Description")
|
||||||
|
readOnly: true
|
||||||
font.pointSize: 10
|
font.pointSize: 10
|
||||||
onTextChanged: {
|
wrapMode: TextEdit.WordWrap
|
||||||
contentChanged()
|
|
||||||
}
|
}
|
||||||
|
ScrollBar.vertical: ScrollBar {
|
||||||
|
width: 10
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -154,17 +154,18 @@ Window {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollView {
|
Flickable {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.topMargin: 5
|
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
ScrollBar.vertical.interactive: true
|
Layout.topMargin: 5
|
||||||
|
TextArea.flickable: TextArea {
|
||||||
TextArea {
|
|
||||||
id: paramDescription
|
id: paramDescription
|
||||||
placeholderText: qsTr("Description")
|
placeholderText: qsTr("Description")
|
||||||
wrapMode: TextEdit.WordWrap
|
|
||||||
font.pointSize: 10
|
font.pointSize: 10
|
||||||
|
wrapMode: TextEdit.WordWrap
|
||||||
|
}
|
||||||
|
ScrollBar.vertical: ScrollBar {
|
||||||
|
width: 10
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -573,19 +573,21 @@ Page {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollView {
|
Flickable {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.topMargin: 5
|
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
ScrollBar.vertical.interactive: true
|
Layout.topMargin: 5
|
||||||
|
TextArea.flickable: TextArea {
|
||||||
TextArea {
|
|
||||||
id: descriptionTextArea
|
id: descriptionTextArea
|
||||||
|
placeholderText: qsTr("Description")
|
||||||
|
font.pointSize: 10
|
||||||
wrapMode: TextEdit.WordWrap
|
wrapMode: TextEdit.WordWrap
|
||||||
textFormat: Text.MarkdownText
|
textFormat: Text.MarkdownText
|
||||||
font.pointSize: 10
|
|
||||||
readOnly: true
|
readOnly: true
|
||||||
}
|
}
|
||||||
|
ScrollBar.vertical: ScrollBar {
|
||||||
|
width: 10
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user