~verzegnassi-stefano/+junk/docviewer-tmp-001

« back to all changes in this revision

Viewing changes to src/app/qml/WelcomePage.qml

  • Committer: Tarmac
  • Author(s): David Planella
  • Date: 2014-11-08 11:08:30 UTC
  • mfrom: (39.1.1 ubuntu-docviewer-app)
  • Revision ID: tarmac-20141108110830-78k8isry6ljj5gpz
Minor doctype visualization improvements on the welcome screen. Fixes: https://bugs.launchpad.net/bugs/1390685, https://bugs.launchpad.net/bugs/1390686.

Approved by Stefano Verzegnassi, Ubuntu Phone Apps Jenkins Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
    }
15
15
 
16
16
    title: i18n.tr("Open with...")
17
 
    head.sections.model: [i18n.tr("Pictures"), i18n.tr("Documents"), i18n.tr("Unknown")]
 
17
    head.sections.model: [i18n.tr("Documents"), i18n.tr("Pictures"), i18n.tr("Other")]
18
18
    head.backAction: Action {
19
19
        iconName: "close"
20
20
        text: i18n.tr("Close")
27
27
        contentType: {
28
28
            switch (picker.head.sections.selectedIndex) {
29
29
            case 0:
 
30
                return ContentType.Documents
 
31
            case 1:
30
32
                return ContentType.Pictures
31
 
            case 1:
32
 
                return ContentType.Documents
33
33
            case 2:
34
34
                return ContentType.Unknown
35
35
            }