InitialWizard.qml 859 B

12345678910111213141516171819202122232425262728293031323334
  1. import QtQuick 2.0
  2. import QtQuick.Dialogs 1.2
  3. import QtQuick.Controls 1.4
  4. import QtQuick.Controls.Styles 1.4
  5. FocusScope {
  6. anchors.fill: parent
  7. Rectangle {
  8. anchors.fill: parent
  9. }
  10. Text {
  11. anchors.centerIn: parent
  12. textFormat: Text.RichText
  13. color: "#bbbbbb"
  14. font.pointSize: 14
  15. text: qsTr("Hi!<\br> Seems you started CuteGit for the first time. So lets <a href=\"#open\"><font color=\"#666666\">open</font></a> one of your repository.");
  16. onLinkActivated: {
  17. if(link == "#open") {
  18. repoOpenDialog.open()
  19. }
  20. }
  21. }
  22. FileDialog {
  23. id: repoOpenDialog
  24. folder: _handler.homePath
  25. selectFolder: true
  26. selectMultiple: false
  27. onAccepted: {
  28. _handler.open(repoOpenDialog.fileUrl, true)
  29. }
  30. }
  31. }