Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.0
- import Ubuntu.Components 1.1
- import Ubuntu.Components.Pickers 1.0
- import Ubuntu.Components.Popups 1.0
- Component {
- id: dialogComponent
- Dialog {
- id: dialog
- objectName: "dialog"
- HospitalsModel {
- id: hospitalsModel
- objectName: "hospitals_model"
- }
- PrimaryCenterModel {
- id: primaryCenterModel
- objectName: "primaryCenter_model"
- }
- title: i18n.tr("Configuration")
- text: i18n.tr("Please, choose your hospital and primary center")
- Picker {
- id: hospitalPicker
- objectName: "hospitalPicker"
- model: hospitalsModel
- delegate: PickerDelegate {
- Label {
- fontSize: "x-small"
- text: name
- }
- }
- }
- Picker {
- id: primaryCenterPicker
- objectName: "primaryCenterPicker"
- model: primaryCenterModel
- delegate: PickerDelegate {
- Label {
- fontSize: "x-small"
- text: name
- }
- }
- }
- Button {
- id: okBtn
- objectName: "okBtn"
- text: i18n.tr("OK")
- onClicked: PopupUtils.close(dialog)
- }
- }
- }
- import QtQuick 2.0
- ListModel {
- ListElement {
- name: "Hospital El Bierzo"
- url: "http://www.saludcastillayleon.es/HBierzoPonferrada/es"
- }
- ListElement {
- name: "Hospital Serranía Ronda"
- url: "http://www.malagasalud.es/hospitales-publicos-en-malaga/hospital-serrania-ronda-area-sanitaria-serrania-malaga,112.html"
- }
- }
- import QtQuick 2.0
- ListModel {
- ListElement {
- name: "Centro de Salud 2, Pico Tuerto"
- url: "http://www.jcyl.es/web/jcyl/Portada/es/Plantilla100Directorio/1248366924958/0/1142233519857/DirectorioPadre"
- }
- ListElement {
- name: "Centro de Salud Ronda-Sur, Santa Bárbara"
- url: "http://www.juntadeandalucia.es/servicioandaluzdesalud/centros/detalle.asp?IdCentro=24967"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement