Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. import QtQuick 2.0
  2.  
  3. import Ubuntu.Components 1.1
  4. import Ubuntu.Components.Pickers 1.0
  5. import Ubuntu.Components.Popups 1.0
  6.  
  7. Component {
  8. id: dialogComponent
  9.  
  10. Dialog {
  11. id: dialog
  12. objectName: "dialog"
  13.  
  14. HospitalsModel {
  15. id: hospitalsModel
  16. objectName: "hospitals_model"
  17. }
  18.  
  19. PrimaryCenterModel {
  20. id: primaryCenterModel
  21. objectName: "primaryCenter_model"
  22. }
  23.  
  24. title: i18n.tr("Configuration")
  25. text: i18n.tr("Please, choose your hospital and primary center")
  26.  
  27. Picker {
  28. id: hospitalPicker
  29. objectName: "hospitalPicker"
  30.  
  31. model: hospitalsModel
  32. delegate: PickerDelegate {
  33. Label {
  34. fontSize: "x-small"
  35. text: name
  36. }
  37. }
  38. }
  39.  
  40. Picker {
  41. id: primaryCenterPicker
  42. objectName: "primaryCenterPicker"
  43.  
  44. model: primaryCenterModel
  45. delegate: PickerDelegate {
  46. Label {
  47. fontSize: "x-small"
  48. text: name
  49. }
  50. }
  51. }
  52.  
  53. Button {
  54. id: okBtn
  55. objectName: "okBtn"
  56.  
  57. text: i18n.tr("OK")
  58. onClicked: PopupUtils.close(dialog)
  59. }
  60. }
  61. }
  62.  
  63. import QtQuick 2.0
  64.  
  65. ListModel {
  66. ListElement {
  67. name: "Hospital El Bierzo"
  68. url: "http://www.saludcastillayleon.es/HBierzoPonferrada/es"
  69. }
  70.  
  71. ListElement {
  72. name: "Hospital Serranía Ronda"
  73. url: "http://www.malagasalud.es/hospitales-publicos-en-malaga/hospital-serrania-ronda-area-sanitaria-serrania-malaga,112.html"
  74. }
  75. }
  76.  
  77. import QtQuick 2.0
  78.  
  79. ListModel {
  80. ListElement {
  81. name: "Centro de Salud 2, Pico Tuerto"
  82. url: "http://www.jcyl.es/web/jcyl/Portada/es/Plantilla100Directorio/1248366924958/0/1142233519857/DirectorioPadre"
  83. }
  84.  
  85. ListElement {
  86. name: "Centro de Salud Ronda-Sur, Santa Bárbara"
  87. url: "http://www.juntadeandalucia.es/servicioandaluzdesalud/centros/detalle.asp?IdCentro=24967"
  88. }
  89. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement