summaryrefslogtreecommitdiff
path: root/kodereviewer/qml/Main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'kodereviewer/qml/Main.qml')
-rw-r--r--kodereviewer/qml/Main.qml27
1 files changed, 11 insertions, 16 deletions
diff --git a/kodereviewer/qml/Main.qml b/kodereviewer/qml/Main.qml
index 0b41a05..e7496a6 100644
--- a/kodereviewer/qml/Main.qml
+++ b/kodereviewer/qml/Main.qml
@@ -53,33 +53,28 @@ Kirigami.ApplicationWindow {
ProjectListPage {
connection: root.connection
project: root.project
+
+ onPullRequestSelected: pr => {
+ print(pr)
+ pullRequestPageLoader.item.pullRequest = pr
+
+ }
}
}
}
Loader {
- id: placeHolderPageLoader
+ id: pullRequestPageLoader
active: false
- sourceComponent: Component {
- Kirigami.Page {
-
- Kirigami.Theme.colorSet: Kirigami.Theme.View
- Kirigami.Theme.inherit: false
- title: "Select a pull request"
- spacing: Kirigami.Units.largeSpacing * 2
- Kirigami.PlaceholderMessage {
- anchors.centerIn: parent
- icon.name: "org.deprecated.kodereviewer"
- text: "Select a pull request"
- }
- }
+ sourceComponent: PullRequestPage {
+ connection: root.connection
}
}
onProjectSelected: {
projectListPageLoader.active = true
- placeHolderPageLoader.active = true
+ pullRequestPageLoader.active = true
pageStack.replace(projectListPageLoader.item)
- pageStack.push(placeHolderPageLoader.item)
+ pageStack.push(pullRequestPageLoader.item)
}
}