Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>>>>>>>>>main.qml<<<<<<<<<<<<<<
- property string activeLanguage : "de"
- areas[i].name_en = areas[i].name_en.replace(/\\u00AD/g, '\u00AD');
- areas[i].name_en = areas[i].name_en.replace(/\s+and\s+/g, ' & ');
- >>>>>>>>>>>>>Menubar.qml<<<<<<<<<<<
- Item {
- id : deToggle
- property bool active : true
- anchors.horizontalCenter : parent.horizontalCenter
- width : 78
- height : 78
- TapArea {
- id : deToggleTapArea
- anchors.fill : parent
- mouseEnabled : true
- onTap : {
- portrait_.timerInactive.restart()
- deToggle.active = true
- enToggle.active = false
- template_.activeLanguage = "de";
- }
- }
- Image {
- id : deToggleIconOn
- visible : deToggle.active
- anchors.centerIn : parent
- source : "germanOn.png"
- }
- Image {
- id : deToggleIconOff
- visible : !deToggle.active
- anchors.centerIn : parent
- source : "germanOff.png"
- }
- }
- Item {
- id : enToggle
- property bool active : false
- anchors.horizontalCenter : parent.horizontalCenter
- width : 78
- height : 78
- TapArea {
- id : enToggleTapArea
- anchors.fill : parent
- mouseEnabled : true
- onTap : {
- portrait_.timerInactive.restart()
- enToggle.active = true
- deToggle.active = false
- template_.activeLanguage = "en";
- }
- }
- Image {
- id : enToggleIconOn
- visible : enToggle.active
- anchors.centerIn : parent
- source : "englishOn.png"
- }
- Image {
- id : enToggleIconOff
- visible : !enToggle.active
- anchors.centerIn : parent
- source : "englishOff.png"
- }
- }
- >>>>>>>>>>>Homescreen.qml<<<<<<<<<<<<<<<
- Text {
- id : searchInput
- anchors {
- left : parent.left
- verticalCenter : parent.verticalCenter
- leftMargin : 25
- }
- color : "#706f6f"
- width : 640
- text : {
- if (template_.activeLanguage === "de") {
- return "Nach Namen suchen ...";
- } else if (template_.activeLanguage === "en") {
- return "Search for Names ...";
- } else
- return "Nach Namen suchen ...";
- }
- font.pixelSize : 32
- font.family : "Lucida Sans Unicode"
- }
- Text {
- id : professionLabel
- anchors {
- top : searchBar.bottom
- horizontalCenter : parent.horizontalCenter
- topMargin : 10
- }
- color : "#706f6f"
- text : {
- if (template_.activeLanguage === "de") {
- return "Fachgebiete";
- } else if (template_.activeLanguage === "en") {
- return "Medical Fields";
- } else
- return "Fachgebiete";
- }
- font.pixelSize : 60
- font.family : "Lucida Sans Unicode"
- font.capitalization: Font.AllUppercase
- }
- >>>>>>>>>>>>>ProfessionDelegate.qml<<<<<<<<<<<<<<
- Text {
- id : label
- text : modelData["name_" + template_.activeLanguage]
- color : "#706f6f"
- wrapMode: Text.Wrap
- horizontalAlignment : Text.AlignHCenter
- anchors {
- top : icon.bottom
- horizontalCenter : parent.horizontalCenter
- topMargin : 10
- }
- width : parent.width - 20
- font.pixelSize : 16
- font.family : "Lucida Sans Unicode"
- font.capitalization: Font.AllUppercase
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement