~paolorotolo/reminders-app/tagsIcon

« back to all changes in this revision

Viewing changes to src/app/qml/components/NotesDelegate.qml

  • Committer: Tarmac
  • Author(s): Michael Zanetti, Riccardo Padovani, Riccardo Padovani
  • Date: 2014-10-31 11:16:47 UTC
  • mfrom: (278.4.7 updatedRole)
  • Revision ID: tarmac-20141031111647-e9hfomtnspj4lv7z
Fixed bug 1378014 - Notes should be sorted by modification date by default
Fixed bug 1380255 - Add day of the month to the notes preview. Fixes: https://bugs.launchpad.net/bugs/1378014, https://bugs.launchpad.net/bugs/1380255.

Approved by Michael Zanetti, Ubuntu Phone Apps Jenkins Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
    property string title
29
29
    property date creationDate
 
30
    property date changedDate
30
31
    property string content
31
32
    property string resource
32
33
    property string tags
78
79
                                font.weight: Font.Light
79
80
                                elide: Text.ElideRight
80
81
                                color: root.notebookColor
81
 
                            } 
 
82
                            }
82
83
 
83
84
                            Label {
84
85
                                Layout.fillWidth: true
101
102
 
102
103
                                }
103
104
                                Label {
104
 
//                                    Layout.minimumWidth: parent.width + units.gu(2)
105
 
                                    text: Qt.formatDateTime(root.creationDate, "dddd, hh:mm")
 
105
                                    // TRANSLATORS: the argument is a modification date that follows this format:
 
106
                                    // http://qt-project.org/doc/qt-5/qml-qtqml-date.html
 
107
                                    text: Qt.formatDateTime(root.creationDate, i18n.tr("dddd, d hh:mm"))
106
108
                                    color: "#b3b3b3"
107
109
                                    fontSize: "small"
108
110
                                    horizontalAlignment: Text.AlignRight
119
121
                    Layout.maximumWidth: parent.width / 2
120
122
 
121
123
                    Rectangle {
122
 
                        height: parent.width / 4 
 
124
                        height: parent.width / 4
123
125
                        width: parent.height
124
126
 
125
127
                        anchors {verticalCenter: parent.verticalCenter; horizontalCenter: parent.horizontalCenter; horizontalCenterOffset: parent.width/2 - height/2 }
126
128
                        rotation: 90
127
 
                        
 
129
 
128
130
                        gradient: Gradient {
129
131
                            GradientStop{ position: 0; color: "#383838" }
130
132
                            GradientStop{ position: 1; color: "transparent" }
131
133
                        }
132
134
                    }
133
 
                
 
135
 
134
136
                    Rectangle {
135
 
                        height: parent.width / 4 
 
137
                        height: parent.width / 4
136
138
                        width: parent.height
137
139
 
138
140
                        anchors {verticalCenter: parent.verticalCenter; horizontalCenter: parent.horizontalCenter; horizontalCenterOffset: -parent.width/2 + height/2 }
139
141
                        rotation: 270
140
 
                        
 
142
 
141
143
                        gradient: Gradient {
142
144
                            GradientStop{ position: 0; color: "#383838" }
143
145
                            GradientStop{ position: 1; color: "transparent" }