diff options
author | Matias Linares <matias@deprecated.org> | 2024-10-21 09:57:10 -0300 |
---|---|---|
committer | Matias Linares <matias@deprecated.org> | 2024-10-21 10:07:17 -0300 |
commit | d349e5014fc60a8ae140a56c457c3f3258959582 (patch) | |
tree | 062e51d749e40cdafb36299fd8376c0d0302291a /kodereviewer/qml | |
parent | bbe83e74b2c1335a0a726c2f993bb2d8c47ffedc (diff) | |
download | kodereviewer-d349e5014fc60a8ae140a56c457c3f3258959582.tar.gz |
Adding something
Add reviewer data
Diffstat (limited to 'kodereviewer/qml')
-rw-r--r-- | kodereviewer/qml/PullRequestDescription.qml | 45 |
1 files changed, 27 insertions, 18 deletions
diff --git a/kodereviewer/qml/PullRequestDescription.qml b/kodereviewer/qml/PullRequestDescription.qml index 075b210..329d288 100644 --- a/kodereviewer/qml/PullRequestDescription.qml +++ b/kodereviewer/qml/PullRequestDescription.qml @@ -5,6 +5,7 @@ import QtQuick.Controls as QQC2 import QtQuick.Layouts import org.deprecated.kodereviewer 1.0 import org.kde.kirigami as Kirigami +import org.kde.kirigamiaddons.delegates as Delegates import org.kde.kirigamiaddons.formcard as FormCard Kirigami.FormLayout { @@ -85,22 +86,6 @@ Kirigami.FormLayout { } } - - ColumnLayout { - Layout.fillWidth: false - Layout.fillHeight: true - - Repeater { - model: 0 - - delegate: QQC2.Label { - text: "#Faa" - } - - } - - } - } Loader { @@ -135,11 +120,35 @@ Kirigami.FormLayout { text: name color: textColor } - } - } + } + Kirigami.Separator { + Kirigami.FormData.isSection: true + Kirigami.FormData.label: "Reviewers" + } + + Loader { + id: reviewerModelLoader + active: !!root.pullRequest + sourceComponent: ReviewerModel { + pullRequest: root.pullRequest + } + } + Column { + Repeater { + id: reviewersListView + model: reviewerModelLoader.item + delegate: QQC2.Label { + required property string username + text: `@${username}` + } + } + } + QQC2.Label { + visible: reviewersListView.count == 0 + text: "No reviewers" } Kirigami.Separator { |