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

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): David Planella, Daniel Holbach, Fabio Colella, Stefano Verzegnassi, Arto Jalkanen
  • Date: 2014-10-29 07:39:08 UTC
  • mfrom: (31.1.22 add-plugin)
  • Revision ID: tarmac-20141029073908-8s6r18syexjo37ga
Adds the file plugin to the source tree.

Approved by Stefano Verzegnassi, Ubuntu Phone Apps Jenkins Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import QtQuick 2.3
 
2
import Ubuntu.Components 1.1
 
3
import Ubuntu.Components.ListItems 1.0 as ListItem
 
4
 
 
5
import "utils.js" as Utils
 
6
 
 
7
Page {
 
8
    id: detailsPage
 
9
    title: i18n.tr("Details")
 
10
 
 
11
    Column {
 
12
        width: parent.width
 
13
 
 
14
        ListItem.Subtitled {
 
15
            text: i18n.tr("Location")
 
16
            subText: file.path
 
17
        }
 
18
        ListItem.Subtitled {
 
19
            text: i18n.tr("Size")
 
20
            subText: Utils.printSize(file.size)
 
21
        }
 
22
 
 
23
        ListItem.Subtitled {
 
24
            text: i18n.tr("Created")
 
25
            subText: i18n.tr("%1").arg(file.creationTime.toLocaleString(Qt.locale()))
 
26
        }
 
27
 
 
28
        ListItem.Subtitled {
 
29
            text: i18n.tr("Last modified")
 
30
            subText: i18n.tr("%1").arg(file.lastModified.toLocaleString(Qt.locale()))
 
31
        }
 
32
 
 
33
        ListItem.Subtitled {
 
34
            id: mimetypeItem
 
35
            objectName: "mimetypeItem"
 
36
            text: i18n.tr("MIME type")
 
37
            subText: mainView.mimetype
 
38
        }
 
39
    }
 
40
}