12345678910111213141516171819202122232425262728293031323334353637 |
- import QtQuick 2.0
- import QtQuick.Controls 1.4
- import QtQuick.Dialogs 1.2
- Item {
- Row {
- id: selector
- Text {
- text: "Active repository" + repoOpenDialog.fileUrl
- }
- Button {
- text: "Choose..."
- onClicked: repoOpenDialog.open()
- }
- }
- Column {
- anchors.top: selector.bottom
- Repeater {
- model: _handler.repositories
- Text {
- text: model.repoName
- }
- }
- }
- FileDialog {
- id: repoOpenDialog
- folder: "."
- selectFolder: true
- selectMultiple: false
- onAccepted: {
- _handler.open(repoOpenDialog.fileUrl)
- }
- }
- }
|