diff options
author | Matias Linares <matias.linares@comprandoengrupo.net> | 2024-10-04 18:30:17 -0300 |
---|---|---|
committer | Matias Linares <matias.linares@comprandoengrupo.net> | 2024-10-04 18:30:17 -0300 |
commit | e9c7736ff83b9003eba960edebd2653bd5a4021f (patch) | |
tree | 81c2da8c4d1c79f465e6eb1e35f22ec597acd2ef /kodereviewer/qml/FilesView.qml | |
parent | 332828d03ae455c9a3ada0f57a08bf0942082824 (diff) | |
download | kodereviewer-e9c7736ff83b9003eba960edebd2653bd5a4021f.tar.gz |
Fix a lot of warnings and add file view
Diffstat (limited to 'kodereviewer/qml/FilesView.qml')
-rw-r--r-- | kodereviewer/qml/FilesView.qml | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/kodereviewer/qml/FilesView.qml b/kodereviewer/qml/FilesView.qml index 299c353..1442860 100644 --- a/kodereviewer/qml/FilesView.qml +++ b/kodereviewer/qml/FilesView.qml @@ -14,23 +14,7 @@ QQC2.SplitView { anchors.fill: parent padding: 0 spacing: 0 - ListModel { - id: fileModel - ListElement { - filename: "file1" - status: "added" - additions: 100 - deletions: 40 - patch: "@@ -132,7 +132,7 @@ module Test @@ -1000,7 +1000,7 @@ module Test" - } - ListElement { - filename: "file2" - status: "added" - additions: 100 - deletions: 40 - patch: "@@ -1,9 +1,9 @@ def something @@ -1000,7 +1000,7 @@ module Test" - } - } + required property FileModel fileModel QQC2.ScrollView { @@ -52,10 +36,11 @@ QQC2.SplitView { } } } - - Editor { - id: textArea - text: "" - file: "" + QQC2.ScrollView { + Editor { + id: textArea + text: "" + file: "" + } } } |